Normalize all line endings according to XML specs 1.0 and 1.1
BREAKING CHANGE: Certain combination of line break characters are normalized to a single \n before parsing takes place and will no longer be preserved.
XMLSerializer: Preserve whitespace character references [#284](https://github.com/xmldom/xmldom/issues/284) / [#310](https://github.com/xmldom/xmldom/issues/310)
BREAKING CHANGE: If you relied on the not spec compliant preservation of literal \t, \n or \r in attribute values.
To preserve those you will have to create XML that instead contains the correct numerical (or hexadecimal) equivalent (e.g. 	, 
, 
).
In the living specs for parsing XML and HTML, that this library is trying to implement,
there is a distinction between the different types of documents being parsed:
There are quite some rules that are different for parsing, constructing and serializing XML vs HTML documents.
So far xmldom was always "detecting" whether "the HTML rules should be applied" by looking at the current namespace. So from the first time an the HTML default namespace (http://www.w3.org/1999/xhtml) was found, every node was treated as being part of an HTML document. This misconception is the root cause for quite some reported bugs.
BREAKING CHANGE: HTML rules are no longer applied just because of the namespace, but require the mimeType argument passed to DOMParser.parseFromString(source, mimeType) to match 'text/html'. Doing so implies all rules for handling casing for tag and attribute names when parsing, creation of nodes and searching nodes.
BREAKING CHANGE: Correct the return type of DOMParser.parseFromString to Document | undefined. In case of parsing errors it was always possible that "the returned Document" has not been created. In case you are using Typescript you now need to handle those cases.
BREAKING CHANGE: The instance property DOMParser.options is no longer available, instead use the individual readonly property per option (assign, domHandler, errorHandler, normalizeLineEndings, locator, xmlns). Those also provides the default value if the option was not passed. The 'locator' option is now just a boolean (default remains true).
BREAKING CHANGE: The following methods no longer allow a (non spec compliant) boolean argument to toggle "HTML rules":
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/nhsengland/futurenhs/network/alerts).
Bumps @xmldom/xmldom to 0.8.3 and updates ancestor dependency msw. These dependencies need to be updated together.
Updates
@xmldom/xmldom
from 0.7.5 to 0.8.3Release notes
Sourced from
@xmldom/xmldom
's releases.... (truncated)
Changelog
Sourced from
@xmldom/xmldom
's changelog.... (truncated)
Commits
c9df7a2
0.8.31c57b5e
docs: Prepare CHANGELOG for 0.8.37c0d4b7
fix: Avoid iterating over prototype propertiesa701915
chore(deps): update dependency eslint to v8.25.0 (#433)2aef5ef
chore(deps): update actions/setup-node action to v3 (#431)0842586
chore(deps): update dependency eslint-plugin-prettier to v4.2.1 (#418)8f1ee5e
chore(deps): update dependency eslint to v8.24.0 (#430)8a34f29
chore(deps): update dependency nodemon to v2.0.20 (#429)ac8012f
chore(deps): update dependency eslint to v8.23.1 (#419)7efca8c
chore(deps): update dependency nodemon to v2.0.19 (#420)Updates
msw
from 0.35.0 to 0.47.4Release notes
Sourced from msw's releases.
... (truncated)
Commits
3e7c4c1
chore(release): v0.47.43902b8c
fix: correctly link types inpackage.json
exports
field (#1395)dae755d
chore: fixes tests on Windows using Unix-style path (#1420)933a9d6
fix: include error stack in log when handling uncaught exceptions (#1417)78d155f
fix: remove duplicate response logging in the browser console (#1418)1caf8df
chore: update "@ossjs/release
" to 0.4.0 (#1409)30ddb8d
chore(release): v0.47.341d8c08
fix: update "headers-polyfill" and "@mswjs/interceptors
" to fix "/lib" issue ...a9b8126
chore(release): v0.47.2c90eafb
fix: fix a typo in the "listHandlers" method jsdoc (#1403)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/nhsengland/futurenhs/network/alerts).