@kamilio/wire 0.1.22 → 0.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +8 -2
  2. package/dist/adapters/root.d.ts +6 -0
  3. package/dist/adapters/root.d.ts.map +1 -1
  4. package/dist/adapters/root.js +54 -16
  5. package/dist/adapters/root.js.map +1 -1
  6. package/dist/cli.js +3 -3
  7. package/dist/cli.js.map +1 -1
  8. package/dist/executable.d.ts.map +1 -1
  9. package/dist/executable.js +3 -2
  10. package/dist/executable.js.map +1 -1
  11. package/node_modules/@xmldom/xmldom/CHANGELOG.md +1132 -0
  12. package/node_modules/@xmldom/xmldom/LICENSE +8 -0
  13. package/node_modules/@xmldom/xmldom/SECURITY.md +50 -0
  14. package/node_modules/@xmldom/xmldom/index.d.ts +1843 -0
  15. package/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +3 -0
  16. package/node_modules/@xmldom/xmldom/lib/conventions.js +429 -0
  17. package/node_modules/@xmldom/xmldom/lib/dom-parser.js +591 -0
  18. package/node_modules/@xmldom/xmldom/lib/dom.js +3759 -0
  19. package/node_modules/@xmldom/xmldom/lib/entities.js +2171 -0
  20. package/node_modules/@xmldom/xmldom/lib/errors.js +205 -0
  21. package/node_modules/@xmldom/xmldom/lib/grammar.js +559 -0
  22. package/node_modules/@xmldom/xmldom/lib/index.js +41 -0
  23. package/node_modules/@xmldom/xmldom/lib/sax.js +983 -0
  24. package/node_modules/@xmldom/xmldom/package.json +77 -0
  25. package/node_modules/@xmldom/xmldom/readme.md +366 -0
  26. package/node_modules/marked/LICENSE.md +44 -0
  27. package/node_modules/marked/README.md +107 -0
  28. package/node_modules/marked/bin/main.js +284 -0
  29. package/node_modules/marked/bin/marked.js +16 -0
  30. package/node_modules/marked/lib/marked.d.ts +759 -0
  31. package/node_modules/marked/lib/marked.esm.js +72 -0
  32. package/node_modules/marked/lib/marked.esm.js.map +7 -0
  33. package/node_modules/marked/lib/marked.umd.js +74 -0
  34. package/node_modules/marked/lib/marked.umd.js.map +7 -0
  35. package/node_modules/marked/man/marked.1 +113 -0
  36. package/node_modules/marked/man/marked.1.md +93 -0
  37. package/node_modules/marked/package.json +103 -0
  38. package/node_modules/provider-asana/dist/asana-explore.d.ts +2 -1
  39. package/node_modules/provider-asana/dist/asana-explore.d.ts.map +1 -1
  40. package/node_modules/provider-asana/dist/asana-explore.js +17 -1
  41. package/node_modules/provider-asana/dist/asana-explore.js.map +1 -1
  42. package/node_modules/provider-asana/dist/asana-markdown.d.ts +5 -0
  43. package/node_modules/provider-asana/dist/asana-markdown.d.ts.map +1 -0
  44. package/node_modules/provider-asana/dist/asana-markdown.js +127 -0
  45. package/node_modules/provider-asana/dist/asana-markdown.js.map +1 -0
  46. package/node_modules/provider-asana/dist/asana-task.d.ts +9 -4
  47. package/node_modules/provider-asana/dist/asana-task.d.ts.map +1 -1
  48. package/node_modules/provider-asana/dist/asana-task.js +92 -12
  49. package/node_modules/provider-asana/dist/asana-task.js.map +1 -1
  50. package/node_modules/provider-asana/dist/index.d.ts +2 -2
  51. package/node_modules/provider-asana/dist/index.d.ts.map +1 -1
  52. package/node_modules/provider-asana/dist/index.js +2 -2
  53. package/node_modules/provider-asana/dist/index.js.map +1 -1
  54. package/node_modules/provider-asana/package.json +2 -0
  55. package/node_modules/provider-asana/src/asana-explore.ts +17 -2
  56. package/node_modules/provider-asana/src/asana-markdown.ts +113 -0
  57. package/node_modules/provider-asana/src/asana-task.ts +80 -12
  58. package/node_modules/provider-asana/src/index.ts +2 -2
  59. package/package.json +12 -6
  60. package/src/adapters/root.ts +56 -16
  61. package/src/cli.ts +3 -3
  62. package/src/executable.ts +3 -2
@@ -0,0 +1,1132 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [0.9.12](https://github.com/xmldom/xmldom/compare/0.9.11...0.9.12)
8
+
9
+ ### Fixed
10
+
11
+ - Security: parsing a deeply or repeatedly namespaced document no longer consumes quadratic memory; the in-scope namespace map is inherited through the prototype chain instead of being copied for every prefix-declaring element (O(N) instead of O(N²)), preventing a denial-of-service reachable from `DOMParser.parseFromString` with default options. Serialized output is byte-identical. [`GHSA-965w-775f-mr7g`](https://github.com/xmldom/xmldom/security/advisories/GHSA-965w-775f-mr7g)
12
+ - Security: attribute de-duplication during parsing is now O(M) instead of O(M²); the `NamedNodeMap` parse-time dedup path uses a null-prototype membership index, so a well-formed document with a hostile number of duplicate attributes can no longer wedge the parse. Attribute order and duplicate resolution (last value wins, first position kept) are byte-identical, preserving the XML [no-duplicate-attributes well-formedness constraint](https://www.w3.org/TR/xml/#uniqattspec). [`GHSA-8344-3jmq-59r6`](https://github.com/xmldom/xmldom/security/advisories/GHSA-8344-3jmq-59r6)
13
+ - Security: HTML raw-text parsing no longer amplifies output on a missing or case-mismatched closing tag; the closing tag is matched case-insensitively per the WHATWG HTML [RAWTEXT end-tag rule](https://html.spec.whatwg.org/multipage/parsing.html#rawtext-end-tag-name-state) and a missing closing tag is handled explicitly, preventing a denial-of-service. Output for well-formed input is unchanged. [`GHSA-6mj3-qw4j-hgrw`](https://github.com/xmldom/xmldom/security/advisories/GHSA-6mj3-qw4j-hgrw)
14
+ - Security: malformed-input recovery is now linear instead of quadratic — the malformed tag-name scan terminates at an embedded `<`, and `Node.prototype.normalize()` merges adjacent text nodes in O(K) instead of O(K²) (also reachable programmatically), per [`normalize()`](https://dom.spec.whatwg.org/#dom-node-normalize) in the WHATWG DOM spec. DOM output is unchanged; only the reported error text differs. [`GHSA-93r5-fhx6-vmg9`](https://github.com/xmldom/xmldom/security/advisories/GHSA-93r5-fhx6-vmg9)
15
+ - Security: `XMLSerializer.serializeToString()` under `{ requireWellFormed: true }` now rejects a DocType `name` that is not a valid XML [`Name`](https://www.w3.org/TR/xml/#NT-Name), throwing `InvalidStateError` — matching the sibling `publicId`/`systemId`/`internalSubset` checks and preventing XML injection via `DocumentType.name`. [`GHSA-27p8-2357-5qqv`](https://github.com/xmldom/xmldom/security/advisories/GHSA-27p8-2357-5qqv)
16
+ - Security: `XMLSerializer.serializeToString()` under `{ requireWellFormed: true }` now validates a processing-instruction target as an XML [`NCName`](https://www.w3.org/TR/xml-names/#NT-NCName) and rejects a case-insensitive `xml`, throwing `InvalidStateError` — preventing PI-target injection via `>`, `?`, or whitespace. [`GHSA-c7q8-3ch8-vqpv`](https://github.com/xmldom/xmldom/security/advisories/GHSA-c7q8-3ch8-vqpv)
17
+ - Security: `Document.createEntityReference()` now rejects an invalid XML [`Name`](https://www.w3.org/TR/xml/#NT-Name) at creation, and `XMLSerializer.serializeToString()` under `{ requireWellFormed: true }` validates an `EntityReference` `nodeName` as an XML `Name`, throwing `InvalidStateError` — preventing XML injection via an entity-reference name. [`GHSA-6gmq-8vp8-gcm6`](https://github.com/xmldom/xmldom/security/advisories/GHSA-6gmq-8vp8-gcm6)
18
+ - Security: the `requireWellFormed` serializer's element- and attribute-name validators no longer treat an interior line terminator as satisfying the name anchors, so a name containing a line terminator is rejected with `InvalidStateError` — closing a bypass of the XML [`QName`](https://www.w3.org/TR/xml-names/#NT-QName) check. [`GHSA-jxjr-3g7g-3944`](https://github.com/xmldom/xmldom/security/advisories/GHSA-jxjr-3g7g-3944)
19
+ - Security: the `requireWellFormed` serializer's DocType `publicId`/`systemId` validators no longer treat an interior line terminator as satisfying the anchor, so an identifier containing an ECMAScript line terminator is rejected with `InvalidStateError` — closing a bypass of the XML [`PubidLiteral`](https://www.w3.org/TR/xml/#NT-PubidLiteral)/`SystemLiteral` check. [`GHSA-vr34-hp96-76pp`](https://github.com/xmldom/xmldom/security/advisories/GHSA-vr34-hp96-76pp)
20
+ - Security: `createElementNS()`, `createAttributeNS()`, `createDocumentType()`, and `createAttribute()` now reject a name containing a line terminator with `InvalidCharacterError`, because name validation applies to the whole string — closing a creation-time bypass of the XML [`Name`/`QName`](https://www.w3.org/TR/xml-names/#NT-QName) production on the default serialization path. [`GHSA-3px3-54cx-rmw9`](https://github.com/xmldom/xmldom/security/advisories/GHSA-3px3-54cx-rmw9)
21
+ - Security: the parser now reports a not-well-formed end tag whose valid name is followed by trailing content (a recoverable `error` in XML, a `warning` in HTML) instead of accepting it silently, per the XML [`ETag`](https://www.w3.org/TR/xml/#NT-ETag) production; parsing recovers to the byte-identical DOM. Consumers that want strict rejection can escalate the reported `error` to fatal via the parser's `onError` handler. [`GHSA-6h8r-xr42-gp59`](https://github.com/xmldom/xmldom/security/advisories/GHSA-6h8r-xr42-gp59)
22
+ - `DOMException`s raised during parsing are now reported as a `fatalError`, and the originating error is preserved as the `cause` on the resulting `ParseError`.
23
+
24
+ ### Chore
25
+
26
+ - updated dependencies
27
+
28
+ Thank you,
29
+ [@ericchiang](https://github.com/ericchiang),
30
+ [@KarimTantawey](https://github.com/KarimTantawey),
31
+ [@bhaswanthc](https://github.com/bhaswanthc),
32
+ [@arpitjain099](https://github.com/arpitjain099),
33
+ [@Paranoidgrinch](https://github.com/Paranoidgrinch),
34
+ for your contributions
35
+
36
+ ## [0.8.15](https://github.com/xmldom/xmldom/compare/0.8.14...0.8.15)
37
+
38
+ ### Fixed
39
+
40
+ - Security: parsing a deeply or repeatedly namespaced document no longer consumes quadratic memory; the in-scope namespace map is inherited through the prototype chain instead of being copied for every prefix-declaring element (O(N) instead of O(N²)), preventing a denial-of-service reachable from `DOMParser.parseFromString` with default options. Serialized output is byte-identical. [`GHSA-965w-775f-mr7g`](https://github.com/xmldom/xmldom/security/advisories/GHSA-965w-775f-mr7g)
41
+ - Security: attribute de-duplication during parsing is now O(M) instead of O(M²); the `NamedNodeMap` parse-time dedup path uses a null-prototype membership index, so a well-formed document with a hostile number of duplicate attributes can no longer wedge the parse. Attribute order and duplicate resolution (last value wins, first position kept) are byte-identical, preserving the XML [no-duplicate-attributes well-formedness constraint](https://www.w3.org/TR/xml/#uniqattspec). [`GHSA-8344-3jmq-59r6`](https://github.com/xmldom/xmldom/security/advisories/GHSA-8344-3jmq-59r6)
42
+ - Security: trimming trailing whitespace from an XML end tag ([`ETag`](https://www.w3.org/TR/xml/#NT-ETag)) is now anchored so it runs in linear time instead of backtracking quadratically on a long whitespace run, preventing a ReDoS reachable from `DOMParser.parseFromString`. Trimmed output is byte-identical. [`GHSA-x4fp-j954-r2f4`](https://github.com/xmldom/xmldom/security/advisories/GHSA-x4fp-j954-r2f4)
43
+ - Security: malformed-input recovery is now linear instead of quadratic — the malformed tag-name scan terminates at an embedded `<`, and `Node.prototype.normalize()` merges adjacent text nodes in O(K) instead of O(K²) (also reachable programmatically), per [`normalize()`](https://dom.spec.whatwg.org/#dom-node-normalize) in the WHATWG DOM spec. DOM output is unchanged; only the reported error text differs. [`GHSA-93r5-fhx6-vmg9`](https://github.com/xmldom/xmldom/security/advisories/GHSA-93r5-fhx6-vmg9)
44
+ - Security: `XMLSerializer.serializeToString()` under `{ requireWellFormed: true }` now rejects a DocType `name` that is not a valid XML [`Name`](https://www.w3.org/TR/xml/#NT-Name), throwing `InvalidStateError` — matching the sibling `publicId`/`systemId`/`internalSubset` checks and preventing XML injection via `DocumentType.name`. [`GHSA-27p8-2357-5qqv`](https://github.com/xmldom/xmldom/security/advisories/GHSA-27p8-2357-5qqv)
45
+ - Security: `XMLSerializer.serializeToString()` under `{ requireWellFormed: true }` now validates a processing-instruction target as an XML [`NCName`](https://www.w3.org/TR/xml-names/#NT-NCName) and rejects a case-insensitive `xml`, throwing `InvalidStateError` — a check `0.8.x` did not previously perform, preventing PI-target injection via `>`, `?`, or whitespace. [`GHSA-c7q8-3ch8-vqpv`](https://github.com/xmldom/xmldom/security/advisories/GHSA-c7q8-3ch8-vqpv)
46
+ - Security: `Document.createEntityReference()` now rejects an invalid XML [`Name`](https://www.w3.org/TR/xml/#NT-Name) at creation, and `XMLSerializer.serializeToString()` under `{ requireWellFormed: true }` validates an `EntityReference` `nodeName` as an XML `Name`, throwing `InvalidStateError` — preventing XML injection via an entity-reference name. [`GHSA-6gmq-8vp8-gcm6`](https://github.com/xmldom/xmldom/security/advisories/GHSA-6gmq-8vp8-gcm6)
47
+ - Security: the parser now reports a not-well-formed end tag whose valid name is followed by trailing content as a recoverable `error` instead of accepting it silently, per the XML [`ETag`](https://www.w3.org/TR/xml/#NT-ETag) production; parsing recovers to the byte-identical DOM. Consumers that want strict rejection can escalate the reported `error` to fatal via the parser's `errorHandler`. [`GHSA-6h8r-xr42-gp59`](https://github.com/xmldom/xmldom/security/advisories/GHSA-6h8r-xr42-gp59)
48
+
49
+ Thank you,
50
+ [@ericchiang](https://github.com/ericchiang),
51
+ [@bhaswanthc](https://github.com/bhaswanthc),
52
+ [@arpitjain099](https://github.com/arpitjain099),
53
+ [@Paranoidgrinch](https://github.com/Paranoidgrinch),
54
+ for your contributions
55
+
56
+ ## [0.9.11](https://github.com/xmldom/xmldom/compare/0.9.10...0.9.11)
57
+
58
+ ### Fixed
59
+
60
+ - Security: `XMLSerializer.serializeToString()` now also rejects invalid element and attribute names when `{ requireWellFormed: true }` is passed, throwing `InvalidStateError` for a name that is not a valid XML [`QName`](https://www.w3.org/TR/xml-names/#NT-QName) (this covers the namespace prefix, which surfaces in the element qualified name or in a synthesized `xmlns:` declaration). This prevents XML injection via `createElement()` / `setAttribute()`, extending the existing `requireWellFormed` checks to the serialized name set. [`GHSA-w2rr-34g9-rvrj`](https://github.com/xmldom/xmldom/security/advisories/GHSA-w2rr-34g9-rvrj) [`GHSA-4w3w-2rp5-g8jm`](https://github.com/xmldom/xmldom/security/advisories/GHSA-4w3w-2rp5-g8jm)
61
+ - Security: the processing-instruction grammar regex no longer backtracks quadratically on an unterminated processing instruction (`<?…` with no closing `?>`), preventing a denial-of-service (ReDoS) reachable from `DOMParser.parseFromString` with default options. [`GHSA-g53g-w8rj-fmg7`](https://github.com/xmldom/xmldom/security/advisories/GHSA-g53g-w8rj-fmg7)
62
+ - `CharacterData` `nodeValue` and `data` are now kept in sync [`#990`](https://github.com/xmldom/xmldom/pull/990)
63
+
64
+ ### Chore
65
+
66
+ - updated dependencies
67
+
68
+ Thank you,
69
+ [@bhaswanthc](https://github.com/bhaswanthc),
70
+ [@jmestwa-coder](https://github.com/jmestwa-coder),
71
+ [@stevenobiajulu](https://github.com/stevenobiajulu),
72
+ for your contributions
73
+
74
+ ## [0.8.14](https://github.com/xmldom/xmldom/compare/0.8.13...0.8.14)
75
+
76
+ ### Fixed
77
+
78
+ - Security: `XMLSerializer.serializeToString()` now also rejects invalid element and attribute names when `{ requireWellFormed: true }` is passed, throwing `InvalidStateError` for a name that is not a valid XML [`QName`](https://www.w3.org/TR/xml-names/#NT-QName) (this covers the namespace prefix, which surfaces in the element qualified name or in a synthesized `xmlns:` declaration). This prevents XML injection via `createElement()` / `setAttribute()`, extending the existing `requireWellFormed` checks to the serialized name set. [`GHSA-w2rr-34g9-rvrj`](https://github.com/xmldom/xmldom/security/advisories/GHSA-w2rr-34g9-rvrj) [`GHSA-4w3w-2rp5-g8jm`](https://github.com/xmldom/xmldom/security/advisories/GHSA-4w3w-2rp5-g8jm)
79
+
80
+ Thank you,
81
+ [@bhaswanthc](https://github.com/bhaswanthc),
82
+ [@jmestwa-coder](https://github.com/jmestwa-coder),
83
+ for your contributions
84
+
85
+ ## [0.9.10](https://github.com/xmldom/xmldom/compare/0.9.9...0.9.10)
86
+
87
+ ### Fixed
88
+
89
+ - Security: `XMLSerializer.serializeToString()` (and `Node.toString()`, `NodeList.toString()`) now accept a `requireWellFormed` option. When `{ requireWellFormed: true }` is passed, the serializer throws `InvalidStateError` for injection-prone node content, preventing XML injection via attacker-controlled node data. [`GHSA-j759-j44w-7fr8`](https://github.com/xmldom/xmldom/security/advisories/GHSA-j759-j44w-7fr8) [`GHSA-x6wf-f3px-wcqx`](https://github.com/xmldom/xmldom/security/advisories/GHSA-x6wf-f3px-wcqx) [`GHSA-f6ww-3ggp-fr8h`](https://github.com/xmldom/xmldom/security/advisories/GHSA-f6ww-3ggp-fr8h)
90
+ - Comment: throws when `data` contains `--` anywhere, ends with `-`, or contains characters outside the XML `Char` production
91
+ - ProcessingInstruction: throws when target contains `:` or matches `xml` (case-insensitive), or `data` contains characters outside the XML `Char` production or contains `?>`
92
+ - DocumentType: throws when `publicId` fails `PubidLiteral`, `systemId` fails `SystemLiteral`, or `internalSubset` contains `]>`
93
+ - Security: DOM traversal operations (`XMLSerializer.serializeToString()`, `Node.prototype.normalize()`, `Node.prototype.cloneNode(true)`, `Document.prototype.importNode(node, true)`, `node.textContent` getter, `getElementsByTagName()` / `getElementsByTagNameNS()` / `getElementsByClassName()` / `getElementById()`, `Node.prototype.isEqualNode()`) are now iterative. Previously, deeply nested DOM trees would exhaust the JavaScript call stack and throw an unrecoverable `RangeError`. [`GHSA-2v35-w6hq-6mfw`](https://github.com/xmldom/xmldom/security/advisories/GHSA-2v35-w6hq-6mfw)
94
+ - `isEqualNode` now correctly returns `false` for CDATASection nodes with different `data`
95
+
96
+ ### Deprecated
97
+
98
+ - The `splitCDATASections` serializer option is deprecated and will be removed in the next breaking release. The automatic splitting of `"]]>"` in `CDATASection` data was introduced as a workaround; use `requireWellFormed: true` or ensure `CDATASection` data does not contain `"]]>"` before serialization.
99
+
100
+ ### Chore
101
+
102
+ - updated dependencies
103
+
104
+ Thank you,
105
+ [@Jvr2022](https://github.com/Jvr2022),
106
+ [@praveen-kv](https://github.com/praveen-kv),
107
+ [@TharVid](https://github.com/TharVid),
108
+ [@decsecre583](https://github.com/decsecre583),
109
+ [@tlsbollei](https://github.com/tlsbollei),
110
+ [@KarimTantawey](https://github.com/KarimTantawey),
111
+ for your contributions
112
+
113
+ ## [0.8.13](https://github.com/xmldom/xmldom/compare/0.8.12...0.8.13)
114
+
115
+ ### Fixed
116
+
117
+ - Security: `XMLSerializer.serializeToString()` (and `Node.toString()`, `NodeList.toString()`) now accept a `requireWellFormed` option (fourth argument, after `isHtml` and `nodeFilter`). When `{ requireWellFormed: true }` is passed, the serializer throws `InvalidStateError` for injection-prone node content, preventing XML injection via attacker-controlled node data. [`GHSA-j759-j44w-7fr8`](https://github.com/xmldom/xmldom/security/advisories/GHSA-j759-j44w-7fr8) [`GHSA-x6wf-f3px-wcqx`](https://github.com/xmldom/xmldom/security/advisories/GHSA-x6wf-f3px-wcqx) [`GHSA-f6ww-3ggp-fr8h`](https://github.com/xmldom/xmldom/security/advisories/GHSA-f6ww-3ggp-fr8h)
118
+ - Comment: throws when `data` contains `-->`
119
+ - ProcessingInstruction: throws when `data` contains `?>`
120
+ - DocumentType: throws when `publicId` fails `PubidLiteral`, `systemId` fails `SystemLiteral`, or `internalSubset` contains `]>`
121
+ - Security: DOM traversal operations (`XMLSerializer.serializeToString()`, `Node.prototype.normalize()`, `Node.prototype.cloneNode(true)`, `Document.prototype.importNode(node, true)`, `node.textContent` getter, `getElementsByTagName()` / `getElementsByTagNameNS()` / `getElementsByClassName()` / `getElementById()`) are now iterative. Previously, deeply nested DOM trees would exhaust the JavaScript call stack and throw an unrecoverable `RangeError`. [`GHSA-2v35-w6hq-6mfw`](https://github.com/xmldom/xmldom/security/advisories/GHSA-2v35-w6hq-6mfw)
122
+
123
+ Thank you,
124
+ [@Jvr2022](https://github.com/Jvr2022),
125
+ [@praveen-kv](https://github.com/praveen-kv),
126
+ [@TharVid](https://github.com/TharVid),
127
+ [@decsecre583](https://github.com/decsecre583),
128
+ [@tlsbollei](https://github.com/tlsbollei),
129
+ [@KarimTantawey](https://github.com/KarimTantawey),
130
+ for your contributions
131
+
132
+
133
+ ## [0.9.9](https://github.com/xmldom/xmldom/compare/0.9.8...0.9.9)
134
+
135
+ ### Added
136
+
137
+ - implement `ParentNode.children` getter [`#960`](https://github.com/xmldom/xmldom/pull/960) / [`#410`](https://github.com/xmldom/xmldom/issues/410)
138
+
139
+ ### Fixed
140
+
141
+ - Security: `createCDATASection` now throws `InvalidCharacterError` when `data` contains `"]]>"`, as required by the [WHATWG DOM spec](https://dom.spec.whatwg.org/#dom-document-createcdatasection). [`GHSA-wh4c-j3r5-mjhp`](https://github.com/xmldom/xmldom/security/advisories/GHSA-wh4c-j3r5-mjhp)
142
+ - Security: `XMLSerializer` now splits CDATASection nodes whose data contains `"]]>"` into adjacent CDATA sections at serialization time, preventing XML injection via mutation methods (`appendData`, `replaceData`, `.data =`, `.textContent =`). [`GHSA-wh4c-j3r5-mjhp`](https://github.com/xmldom/xmldom/security/advisories/GHSA-wh4c-j3r5-mjhp)
143
+ - correctly traverse ancestor chain in `Node.contains` [`#931`](https://github.com/xmldom/xmldom/pull/931)
144
+
145
+ Code that passes a string containing `"]]>"` to `createCDATASection` and relied on the previously unsafe behavior will now receive `InvalidCharacterError`. Use a mutation method such as `appendData` if you intentionally need `"]]>"` in a CDATASection node's data.
146
+
147
+ ### Chore
148
+
149
+ - updated dependencies
150
+
151
+ Thank you,
152
+ [@stevenobiajulu](https://github.com/stevenobiajulu),
153
+ [@yoshi389111](https://github.com/yoshi389111),
154
+ [@thesmartshadow](https://github.com/thesmartshadow),
155
+ for your contributions
156
+
157
+
158
+ ## [0.8.12](https://github.com/xmldom/xmldom/compare/0.8.11...0.8.12)
159
+
160
+ ### Fixed
161
+
162
+ - preserve trailing whitespace in ProcessingInstruction data [`#962`](https://github.com/xmldom/xmldom/pull/962) / [`#42`](https://github.com/xmldom/xmldom/issues/42)
163
+ - Security: `createCDATASection` now throws `InvalidCharacterError` when `data` contains `"]]>"`, as required by the [WHATWG DOM spec](https://dom.spec.whatwg.org/#dom-document-createcdatasection). [`GHSA-wh4c-j3r5-mjhp`](https://github.com/xmldom/xmldom/security/advisories/GHSA-wh4c-j3r5-mjhp)
164
+ - Security: `XMLSerializer` now splits CDATASection nodes whose data contains `"]]>"` into adjacent CDATA sections at serialization time, preventing XML injection via mutation methods (`appendData`, `replaceData`, `.data =`, `.textContent =`). [`GHSA-wh4c-j3r5-mjhp`](https://github.com/xmldom/xmldom/security/advisories/GHSA-wh4c-j3r5-mjhp)
165
+
166
+ Code that passes a string containing `"]]>"` to `createCDATASection` and relied on the previously unsafe behavior will now receive `InvalidCharacterError`. Use a mutation method such as `appendData` if you intentionally need `"]]>"` in a CDATASection node's data.
167
+
168
+ Thank you,
169
+ [@thesmartshadow](https://github.com/thesmartshadow),
170
+ [@stevenobiajulu](https://github.com/stevenobiajulu),
171
+ for your contributions
172
+
173
+ ## [0.8.11](https://github.com/xmldom/xmldom/compare/0.8.10...0.8.11)
174
+
175
+ ### Fixed
176
+
177
+ - update `ownerDocument` when moving nodes between documents [`#933`](https://github.com/xmldom/xmldom/pull/933) / [`#932`](https://github.com/xmldom/xmldom/issues/932)
178
+
179
+ Thank you, [@shunkica](https://github.com/shunkica), for your contributions
180
+
181
+ ## [0.9.8](https://github.com/xmldom/xmldom/compare/0.9.7...0.9.8)
182
+
183
+ ### Fixed
184
+
185
+ - fix: replace \u2029 as part of normalizeLineEndings [`#839`](https://github.com/xmldom/xmldom/pull/839) / [`#838`](https://github.com/xmldom/xmldom/issues/838)
186
+ - perf: speed up line detection [`#847`](https://github.com/xmldom/xmldom/pull/847) / [`#838`](https://github.com/xmldom/xmldom/issues/838)
187
+
188
+ ### Chore
189
+
190
+ - updated dependencies
191
+ - drop jazzer and rxjs devDependencies [`#845`](https://github.com/xmldom/xmldom/pull/845)
192
+
193
+ Thank you,
194
+ [@kboshold](https://github.com/kboshold),
195
+ [@Ponynjaa](https://github.com/Ponynjaa),
196
+ for your contributions.
197
+
198
+
199
+ ## [0.9.7](https://github.com/xmldom/xmldom/compare/0.9.6...0.9.7)
200
+
201
+ ### Added
202
+
203
+ - Implementation of `hasAttributes` [`#804`](https://github.com/xmldom/xmldom/pull/804)
204
+
205
+ ### Fixed
206
+
207
+ - locator is now true even when other options are being used for the DOMParser [`#802`](https://github.com/xmldom/xmldom/issues/802) / [`#803`](https://github.com/xmldom/xmldom/pull/803)
208
+ - allow case-insensitive DOCTYPE in HTML [`#817`](https://github.com/xmldom/xmldom/issues/817) / [`#819`](https://github.com/xmldom/xmldom/pull/819)
209
+
210
+ ### Performance
211
+
212
+ - simplify `DOM.compareDocumentPosition` [`#805`](https://github.com/xmldom/xmldom/pull/805)
213
+
214
+ ### Chore
215
+
216
+ - updated devDependencies
217
+
218
+ Thank you,
219
+ [@zorkow](https://github.com/zorkow),
220
+ [@Ponynjaa](https://github.com/Ponynjaa),
221
+ [@WesselKroos](https://github.com/WesselKroos),
222
+ for your contributions.
223
+
224
+
225
+ ## [0.9.6](https://github.com/xmldom/xmldom/compare/0.9.5...0.9.6)
226
+
227
+ ### Fixed
228
+
229
+ - lower error level for unicode replacement character [`#790`](https://github.com/xmldom/xmldom/issues/790) / [`#794`](https://github.com/xmldom/xmldom/pull/794) / [`#797`](https://github.com/xmldom/xmldom/pull/797)
230
+
231
+ ### Chore
232
+
233
+ - updated devDependencies
234
+ - migrate renovate config [`#792`](https://github.com/xmldom/xmldom/pull/792)
235
+
236
+ Thank you, [@eglitise](https://github.com/eglitise), for your contributions.
237
+
238
+
239
+ ## [0.9.5](https://github.com/xmldom/xmldom/compare/0.9.4...0.9.5)
240
+
241
+ ### Fixed
242
+
243
+ - fix: re-index childNodes on insertBefore [`#763`](https://github.com/xmldom/xmldom/issues/763) / [`#766`](https://github.com/xmldom/xmldom/pull/766)
244
+
245
+ Thank you,
246
+ [@mureinik](https://github.com/mureinik),
247
+ for your contributions.
248
+
249
+
250
+ ## [0.9.4](https://github.com/xmldom/xmldom/compare/0.9.3...0.9.4)
251
+
252
+ ### Fixed
253
+
254
+ - restore performance for large amount of child nodes [`#748`](https://github.com/xmldom/xmldom/issues/748) / [`#760`](https://github.com/xmldom/xmldom/pull/760)
255
+ - types: correct error handler level to `warning` (#759) [`#754`](https://github.com/xmldom/xmldom/issues/754) / [`#759`](https://github.com/xmldom/xmldom/pull/759)
256
+
257
+ ### Docs
258
+
259
+ - test: verify BOM handling [`#758`](https://github.com/xmldom/xmldom/pull/758)
260
+
261
+ Thank you,
262
+ [@luffynando](https://github.com/luffynando),
263
+ [@mattiasw](https://github.com/mattiasw),
264
+ [@JoinerDev](https://github.com/JoinerDev),
265
+ for your contributions.
266
+
267
+
268
+ ## [0.9.3](https://github.com/xmldom/xmldom/compare/0.9.2...0.9.3)
269
+
270
+ ### Fixed
271
+
272
+ - restore more `Node` and `ProcessingInstruction` types [`#725`](https://github.com/xmldom/xmldom/issues/725) / [`#726`](https://github.com/xmldom/xmldom/pull/726)
273
+ - `getElements*` methods return `LiveNodeList&lt;Element&gt;` [`#731`](https://github.com/xmldom/xmldom/issues/731) / [`#734`](https://github.com/xmldom/xmldom/pull/734)
274
+ - Add more missing `Node` props [`#728`](https://github.com/xmldom/xmldom/pull/728), triggered by unclosed [`#724`](https://github.com/xmldom/xmldom/pull/724)
275
+
276
+ ### Docs
277
+
278
+ - Update supported runtimes in readme (NodeJS >= 14.6 and other [ES5 compatible runtimes](https://compat-table.github.io/compat-table/es5/))
279
+
280
+ ### Chore
281
+
282
+ - updates devDependencies
283
+
284
+ Thank you,
285
+ [@Ponynjaa](https://github.com/Ponynjaa),
286
+ [@ayZagen](https://github.com/ayZagen),
287
+ [@sserdyuk](https://github.com/sserdyuk),
288
+ [@wydengyre](https://github.com/wydengyre),
289
+ [@mykola-mokhnach](https://github.com/mykola-mokhnach),
290
+ [@benkroeger](https://github.com/benkroeger),
291
+ for your contributions.
292
+
293
+
294
+ ## [0.9.2](https://github.com/xmldom/xmldom/compare/0.9.1...0.9.2)
295
+
296
+ ### Feature
297
+
298
+ - add `Element.getElementsByClassName` [`#722`](https://github.com/xmldom/xmldom/pull/722)
299
+
300
+ ### Fixed
301
+
302
+ - add missing types for `Document.documentElement` and `Element.tagName` [`#721`](https://github.com/xmldom/xmldom/pull/721) [`#720`](https://github.com/xmldom/xmldom/issues/720)
303
+
304
+ Thank you, [@censujiang](https://github.com/censujiang), [@Mathias-S](https://github.com/Mathias-S), for your contributions
305
+
306
+
307
+ ## [0.9.1](https://github.com/xmldom/xmldom/compare/0.9.0...0.9.1)
308
+
309
+ ### Fixed
310
+
311
+ - DOMParser.parseFromString requires mimeType as second argument [`#713`](https://github.com/xmldom/xmldom/pull/713)
312
+ - correct spelling of `isHTMLMimeType` in type definition [`#715`](https://github.com/xmldom/xmldom/pull/715) / [`#712`](https://github.com/xmldom/xmldom/issues/712)
313
+ - sync types with exports [`#717`](https://github.com/xmldom/xmldom/pull/717) / [`#285`](https://github.com/xmldom/xmldom/issues/285) / [`#695`](https://github.com/xmldom/xmldom/issues/695)
314
+
315
+ ### Other
316
+
317
+ - minimum tested node version is 14 [`#710`](https://github.com/xmldom/xmldom/pull/710)
318
+
319
+ Thank you, [@krystofwoldrich](https://github.com/krystofwoldrich), [@marvinruder](https://github.com/marvinruder), [@amacneil](https://github.com/amacneil), [@defunctzombie](https://github.com/defunctzombie),
320
+ [@tjhorner](https://github.com/tjhorner), [@danon](https://github.com/danon), for your contributions
321
+
322
+
323
+ ## [0.9.0](https://github.com/xmldom/xmldom/compare/0.9.0-beta.11...0.9.0)
324
+
325
+ - [Discussion](https://github.com/xmldom/xmldom/discussions/435)
326
+ - [Summary on dev.to](https://dev.to/karfau/release-090-of-xmldomxmldom-4106)
327
+
328
+ ### Features
329
+
330
+ - feat: expose all DOM level 2 element prototypes [`#637`](https://github.com/xmldom/xmldom/pull/637) / [`#40`](https://github.com/xmldom/xmldom/issues/40)
331
+ - feat: add iterator function to NodeList and NamedNodeMap [`#634`](https://github.com/xmldom/xmldom/pull/634) / [`#633`](https://github.com/xmldom/xmldom/issues/633)
332
+
333
+ ### Fixed
334
+
335
+ - parse empty/whitspace only doctype internal subset [`#692`](https://github.com/xmldom/xmldom/pull/692)
336
+ - avoid prototype clash in namespace prefix [`#554`](https://github.com/xmldom/xmldom/pull/554)
337
+ - report fatalError when doctype is inside elements [`#550`](https://github.com/xmldom/xmldom/pull/550)
338
+
339
+ ### Other
340
+
341
+ - test: add fuzz target and regression tests [`#556`](https://github.com/xmldom/xmldom/pull/556)
342
+ - chore: improve .gitignore and provide .envrc.template [`#697`](https://github.com/xmldom/xmldom/pull/697)
343
+ - chore: Apply security best practices [`#546`](https://github.com/xmldom/xmldom/pull/546)
344
+ - ci: check test coverage in PRs [`#524`](https://github.com/xmldom/xmldom/pull/524)
345
+ - docs: add missing commas to readme [`#566`](https://github.com/xmldom/xmldom/pull/566)
346
+ - docs: click to copy install command in readme [`#644`](https://github.com/xmldom/xmldom/pull/644)
347
+ - docs: enhance jsdoc comments [`#511`](https://github.com/xmldom/xmldom/pull/511)
348
+
349
+ Thank you, [@kboshold](https://github.com/kboshold), [@edi9999](https://github.com/edi9999), [@apupier](https://github.com/apupier),
350
+ [@shunkica](https://github.com/shunkica), [@homer0](https://github.com/homer0), [@jhauga](https://github.com/jhauga),
351
+ [@UdayKharatmol](https://github.com/UdayKharatmol), for your contributions
352
+
353
+
354
+ ## [0.9.0-beta.11](https://github.com/xmldom/xmldom/compare/0.9.0-beta.10...0.9.0-beta.11)
355
+
356
+ ### Fixed
357
+
358
+ - report more non well-formed cases [`#519`](https://github.com/xmldom/xmldom/pull/519) / [`#45`](https://github.com/xmldom/xmldom/issues/45) / [`#125`](https://github.com/xmldom/xmldom/issues/125) / [`#467`](https://github.com/xmldom/xmldom/issues/467)
359
+ BREAKING-CHANGE: Reports more not well-formed documents as fatalError
360
+ and drop broken support for optional and unclosed tags in HTML.
361
+
362
+ ### Other
363
+
364
+ - Translate/drop non English comments [`#518`](https://github.com/xmldom/xmldom/pull/518)
365
+ - use node v16 for development [`#517`](https://github.com/xmldom/xmldom/pull/517)
366
+
367
+ Thank you, [@brodybits](https://github.com/brodybits), [@cbettinger](https://github.com/cbettinger), [@josecarlosrx](https://github.com/josecarlosrx), for your contributions
368
+
369
+
370
+ ## [0.9.0-beta.10](https://github.com/xmldom/xmldom/compare/0.9.0-beta.9...0.9.0-beta.10)
371
+
372
+ ### Fixed
373
+
374
+ - dom: prevent iteration over deleted items [`#514`](https://github.com/xmldom/xmldom/pull/514)/ [`#499`](https://github.com/xmldom/xmldom/issues/499)
375
+
376
+ ### Chore
377
+
378
+ - use prettier plugin for jsdoc [`#513`](https://github.com/xmldom/xmldom/pull/513)
379
+
380
+ Thank you, [@qtow](https://github.com/qtow), [@shunkica](https://github.com/shunkica), [@homer0](https://github.com/homer0), for your contributions
381
+
382
+
383
+ ## [0.8.10](https://github.com/xmldom/xmldom/compare/0.8.9...0.8.10)
384
+
385
+ ### Fixed
386
+
387
+ - dom: prevent iteration over deleted items [`#514`](https://github.com/xmldom/xmldom/pull/514)/ [`#499`](https://github.com/xmldom/xmldom/issues/499)
388
+
389
+ Thank you, [@qtow](https://github.com/qtow), for your contributions
390
+
391
+
392
+ ## [0.7.13](https://github.com/xmldom/xmldom/compare/0.7.12...0.7.13)
393
+
394
+ ### Fixed
395
+
396
+ - dom: prevent iteration over deleted items [`#514`](https://github.com/xmldom/xmldom/pull/514)/ [`#499`](https://github.com/xmldom/xmldom/issues/499)
397
+
398
+ Thank you, [@qtow](https://github.com/qtow), for your contributions
399
+
400
+
401
+ ## [0.9.0-beta.9](https://github.com/xmldom/xmldom/compare/0.9.0-beta.8...0.9.0-beta.9)
402
+
403
+ ### Fixed
404
+
405
+ - Set nodeName property in ProcessingInstruction [`#509`](https://github.com/xmldom/xmldom/pull/509) / [`#505`](https://github.com/xmldom/xmldom/issues/505)
406
+ - preserve DOCTYPE internal subset [`#498`](https://github.com/xmldom/xmldom/pull/498) / [`#497`](https://github.com/xmldom/xmldom/pull/497) / [`#117`](https://github.com/xmldom/xmldom/issues/117)\
407
+ BREAKING CHANGES: Many documents that were previously accepted by xmldom, esecially non well-formed ones are no longer accepted. Some issues that were formerly reported as errors are now a fatalError.
408
+ - DOMParser: Align parseFromString errors with specs [`#454`](https://github.com/xmldom/xmldom/pull/454)
409
+
410
+ ### Chore
411
+
412
+ - stop running mutation tests using stryker [`#496`](https://github.com/xmldom/xmldom/pull/496)
413
+ - make `toErrorSnapshot` windows compatible [`#503`](https://github.com/xmldom/xmldom/pull/503)
414
+
415
+ Thank you, [@cjbarth](https://github.com/cjbarth), [@shunkica](https://github.com/shunkica), [@pmahend1](https://github.com/pmahend1), [@niklasl](https://github.com/niklasl), for your contributions
416
+
417
+
418
+ ## [0.8.9](https://github.com/xmldom/xmldom/compare/0.8.8...0.8.9)
419
+
420
+ ### Fixed
421
+
422
+ - Set nodeName property in ProcessingInstruction [`#509`](https://github.com/xmldom/xmldom/pull/509) / [`#505`](https://github.com/xmldom/xmldom/issues/505)
423
+
424
+ Thank you, [@cjbarth](https://github.com/cjbarth), for your contributions
425
+
426
+
427
+ ## [0.7.12](https://github.com/xmldom/xmldom/compare/0.7.11...0.7.12)
428
+
429
+ ### Fixed
430
+
431
+ - Set nodeName property in ProcessingInstruction [`#509`](https://github.com/xmldom/xmldom/pull/509) / [`#505`](https://github.com/xmldom/xmldom/issues/505)
432
+
433
+ Thank you, [@cjbarth](https://github.com/cjbarth), for your contributions
434
+
435
+
436
+ ## [0.9.0-beta.8](https://github.com/xmldom/xmldom/compare/0.9.0-beta.7...0.9.0-beta.8)
437
+
438
+ ### Fixed
439
+
440
+ - Throw DOMException when calling removeChild with invalid parameter [`#494`](https://github.com/xmldom/xmldom/pull/494) / [`#135`](https://github.com/xmldom/xmldom/issues/135)
441
+
442
+ BREAKING CHANGE: Previously it was possible (but not documented) to call `Node.removeChild` with any node in the tree,
443
+ and with certain exceptions, it would work. This is no longer the case: calling `Node.removeChild` with an argument that is not a direct child of the node that it is called from, will throw a NotFoundError DOMException, as it is described by the specs.
444
+
445
+ Thank you, [@noseworthy](https://github.com/noseworthy), [@davidmc24](https://github.com/davidmc24), for your contributions
446
+
447
+
448
+ ## [0.9.0-beta.7](https://github.com/xmldom/xmldom/compare/0.9.0-beta.6...0.9.0-beta.7)
449
+
450
+ ### Feature
451
+
452
+ - Add `compareDocumentPosition` method from level 3 spec. [`#488`](https://github.com/xmldom/xmldom/pull/488)
453
+
454
+ ### Fixed
455
+
456
+ - `getAttribute` and `getAttributeNS` should return `null` (#477) [`#46`](https://github.com/xmldom/xmldom/issues/46)
457
+ - several issues in NamedNodeMap and Element (#482) [`#46`](https://github.com/xmldom/xmldom/issues/46)
458
+ - properly parse closing where the last attribute has no value [`#485`](https://github.com/xmldom/xmldom/pull/485) / [`#486`](https://github.com/xmldom/xmldom/issues/486)
459
+ - extend list of HTML entities [`#489`](https://github.com/xmldom/xmldom/pull/489)
460
+
461
+ BREAKING CHANGE: Iteration over attributes now happens in the right order and non-existing attributes now return `null` instead of undefined. THe same is true for the `namepsaceURI` and `prefix` of Attr nodes.
462
+ All of the changes are fixing misalignment with the DOM specs, so if you expected it to work as specified,
463
+ nothing should break for you.
464
+
465
+ ### Chore
466
+
467
+ - update multiple devDependencies
468
+ - Configure jest (correctly) and wallaby [`#481`](https://github.com/xmldom/xmldom/pull/481) / [`#483`](https://github.com/xmldom/xmldom/pull/483)
469
+
470
+ Thank you, [@bulandent](https://github.com/bulandent), [@zorkow](https://github.com/zorkow), for your contributions
471
+
472
+
473
+ ## [0.8.8](https://github.com/xmldom/xmldom/compare/0.8.7...0.8.8)
474
+
475
+ ### Fixed
476
+
477
+ - extend list of HTML entities [`#489`](https://github.com/xmldom/xmldom/pull/489)
478
+
479
+ Thank you, [@zorkow](https://github.com/zorkow), for your contributions
480
+
481
+ ## [0.7.11](https://github.com/xmldom/xmldom/compare/0.7.10...0.7.11)
482
+
483
+ ### Fixed
484
+
485
+ - extend list of HTML entities [`#489`](https://github.com/xmldom/xmldom/pull/489)
486
+
487
+ Thank you, [@zorkow](https://github.com/zorkow), for your contributions
488
+
489
+
490
+ ## [0.8.7](https://github.com/xmldom/xmldom/compare/0.8.6...0.8.7)
491
+
492
+ ### Fixed
493
+
494
+ - properly parse closing where the last attribute has no value [`#485`](https://github.com/xmldom/xmldom/pull/485) / [`#486`](https://github.com/xmldom/xmldom/issues/486)
495
+
496
+ Thank you, [@bulandent](https://github.com/bulandent), for your contributions
497
+
498
+
499
+ ## [0.7.10](https://github.com/xmldom/xmldom/compare/0.7.9...0.7.10)
500
+
501
+ ### Fixed
502
+
503
+ - properly parse closing where the last attribute has no value [`#485`](https://github.com/xmldom/xmldom/pull/485) / [`#486`](https://github.com/xmldom/xmldom/issues/486)
504
+
505
+ Thank you, [@bulandent](https://github.com/bulandent), for your contributions
506
+
507
+
508
+ ## [0.8.6](https://github.com/xmldom/xmldom/compare/0.8.5...0.8.6)
509
+
510
+ ### Fixed
511
+
512
+ - Properly check nodes before replacement [`#457`](https://github.com/xmldom/xmldom/pull/457) / [`#455`](https://github.com/xmldom/xmldom/issues/455) / [`#456`](https://github.com/xmldom/xmldom/issues/456)
513
+
514
+ Thank you, [@edemaine](https://github.com/edemaine), [@pedro-l9](https://github.com/pedro-l9), for your contributions
515
+
516
+
517
+ ## [0.7.9](https://github.com/xmldom/xmldom/compare/0.7.8...0.7.9)
518
+
519
+ ### Fixed
520
+
521
+ - Properly check nodes before replacement [`#457`](https://github.com/xmldom/xmldom/pull/457) / [`#455`](https://github.com/xmldom/xmldom/issues/455) / [`#456`](https://github.com/xmldom/xmldom/issues/456)
522
+
523
+ Thank you, [@edemaine](https://github.com/edemaine), [@pedro-l9](https://github.com/pedro-l9), for your contributions
524
+
525
+
526
+ ## [0.9.0-beta.6](https://github.com/xmldom/xmldom/compare/0.9.0-beta.5...0.9.0-beta.6)
527
+
528
+ ### Fixed
529
+
530
+ - Properly check nodes before replacement [`#457`](https://github.com/xmldom/xmldom/pull/457) / [`#455`](https://github.com/xmldom/xmldom/issues/455) / [`#456`](https://github.com/xmldom/xmldom/issues/456)
531
+
532
+ Thank you, [@edemaine](https://github.com/edemaine), [@pedro-l9](https://github.com/pedro-l9), for your contributions
533
+
534
+
535
+ ## [0.9.0-beta.5](https://github.com/xmldom/xmldom/compare/0.9.0-beta.4...0.9.0-beta.5)
536
+
537
+ ### Fixed
538
+
539
+ - fix: Restore ES5 compatibility [`#452`](https://github.com/xmldom/xmldom/pull/452) / [`#453`](https://github.com/xmldom/xmldom/issues/453)
540
+
541
+ Thank you, [@fengxinming](https://github.com/fengxinming), for your contributions
542
+
543
+
544
+ ## [0.8.5](https://github.com/xmldom/xmldom/compare/0.8.4...0.8.5)
545
+
546
+ ### Fixed
547
+
548
+ - fix: Restore ES5 compatibility [`#452`](https://github.com/xmldom/xmldom/pull/452) / [`#453`](https://github.com/xmldom/xmldom/issues/453)
549
+
550
+ Thank you, [@fengxinming](https://github.com/fengxinming), for your contributions
551
+
552
+
553
+ ## [0.7.8](https://github.com/xmldom/xmldom/compare/0.7.7...0.7.8)
554
+
555
+ ### Fixed
556
+
557
+ - fix: Restore ES5 compatibility [`#452`](https://github.com/xmldom/xmldom/pull/452) / [`#453`](https://github.com/xmldom/xmldom/issues/453)
558
+
559
+ Thank you, [@fengxinming](https://github.com/fengxinming), for your contributions
560
+
561
+
562
+ ## [0.9.0-beta.4](https://github.com/xmldom/xmldom/compare/0.9.0-beta.3...0.9.0-beta.4)
563
+
564
+ ### Fixed
565
+
566
+ - Security: Prevent inserting DOM nodes when they are not well-formed [`CVE-2022-39353`](https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883)
567
+ In case such a DOM would be created, the part that is not well-formed will be transformed into text nodes, in which xml specific characters like `<` and `>` are encoded accordingly.
568
+ In the upcoming version 0.9.0 those text nodes will no longer be added and an error will be thrown instead.
569
+ This change can break your code, if you relied on this behavior, e.g. multiple root elements in the past. We consider it more important to align with the specs that we want to be aligned with, considering the potential security issues that might derive from people not being aware of the difference in behavior.
570
+ Related Spec: <https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity>
571
+
572
+ ### Chore
573
+
574
+ - update multiple devDependencies
575
+ - Add eslint-plugin-node for `lib` [`#448`](https://github.com/xmldom/xmldom/pull/448) / [`#190`](https://github.com/xmldom/xmldom/issues/190)
576
+ - style: Apply prettier to all code [`#447`](https://github.com/xmldom/xmldom/pull/447) / [`#29`](https://github.com/xmldom/xmldom/issues/29) / [`#130`](https://github.com/xmldom/xmldom/issues/130)
577
+
578
+ Thank you, [@XhmikosR](https://github.com/XhmikosR), [@awwright](https://github.com/awwright), [@frumioj](https://github.com/frumioj), [@cjbarth](https://github.com/cjbarth), [@markgollnick](https://github.com/markgollnick) for your contributions
579
+
580
+
581
+ ## [0.8.4](https://github.com/xmldom/xmldom/compare/0.8.3...0.8.4)
582
+
583
+ ### Fixed
584
+
585
+ - Security: Prevent inserting DOM nodes when they are not well-formed [`CVE-2022-39353`](https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883)
586
+ In case such a DOM would be created, the part that is not well-formed will be transformed into text nodes, in which xml specific characters like `<` and `>` are encoded accordingly.
587
+ In the upcoming version 0.9.0 those text nodes will no longer be added and an error will be thrown instead.
588
+ This change can break your code, if you relied on this behavior, e.g. multiple root elements in the past. We consider it more important to align with the specs that we want to be aligned with, considering the potential security issues that might derive from people not being aware of the difference in behavior.
589
+ Related Spec: <https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity>
590
+
591
+ Thank you, [@frumioj](https://github.com/frumioj), [@cjbarth](https://github.com/cjbarth), [@markgollnick](https://github.com/markgollnick) for your contributions
592
+
593
+
594
+ ## [0.7.7](https://github.com/xmldom/xmldom/compare/0.7.6...0.7.7)
595
+
596
+ ### Fixed
597
+
598
+ - Security: Prevent inserting DOM nodes when they are not well-formed [`CVE-2022-39353`](https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883)
599
+ In case such a DOM would be created, the part that is not well-formed will be transformed into text nodes, in which xml specific characters like `<` and `>` are encoded accordingly.
600
+ In the upcoming version 0.9.0 those text nodes will no longer be added and an error will be thrown instead.
601
+ This change can break your code, if you relied on this behavior, e.g. multiple root elements in the past. We consider it more important to align with the specs that we want to be aligned with, considering the potential security issues that might derive from people not being aware of the difference in behavior.
602
+ Related Spec: <https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity>
603
+
604
+ Thank you, [@frumioj](https://github.com/frumioj), [@cjbarth](https://github.com/cjbarth), [@markgollnick](https://github.com/markgollnick) for your contributions
605
+
606
+
607
+ ## [0.9.0-beta.3](https://github.com/xmldom/xmldom/compare/0.9.0-beta.2...0.9.0-beta.3)
608
+
609
+ ### Fixed
610
+
611
+ - fix: Stop adding tags after incomplete closing tag [`#445`](https://github.com/xmldom/xmldom/pull/445) / [`#416`](https://github.com/xmldom/xmldom/pull/416)
612
+ BREAKING CHANGE: It no longer reports an error when parsing HTML containing incomplete closing tags, to align the behavior with the one in the browser.
613
+ BREAKING CHANGE: If your code relied on not well-formed XML to be parsed and include subsequent tags, this will no longer work.
614
+ - fix: Avoid bidirectional characters in source code [`#440`](https://github.com/xmldom/xmldom/pull/440)
615
+
616
+ ### Other
617
+
618
+ - ci: Add CodeQL scan [`#444`](https://github.com/xmldom/xmldom/pull/444)
619
+
620
+ Thank you, [@ACN-kck](https://github.com/ACN-kck), [@mgerlach](https://github.com/mgerlach) for your contributions
621
+
622
+
623
+ ## [0.7.6](https://github.com/xmldom/xmldom/compare/0.7.5...0.7.6)
624
+
625
+ ### Fixed
626
+ - Avoid iterating over prototype properties [`#441`](https://github.com/xmldom/xmldom/pull/441) / [`#437`](https://github.com/xmldom/xmldom/pull/437) / [`#436`](https://github.com/xmldom/xmldom/issues/436)
627
+
628
+ Thank you, [@jftanner](https://github.com/jftanner), [@Supraja9726](https://github.com/Supraja9726) for your contributions
629
+
630
+
631
+ ## [0.8.3](https://github.com/xmldom/xmldom/compare/0.8.3...0.8.2)
632
+
633
+ ### Fixed
634
+ - Avoid iterating over prototype properties [`#437`](https://github.com/xmldom/xmldom/pull/437) / [`#436`](https://github.com/xmldom/xmldom/issues/436)
635
+
636
+ Thank you, [@Supraja9726](https://github.com/Supraja9726) for your contributions
637
+
638
+
639
+ ## [0.9.0-beta.2](https://github.com/xmldom/xmldom/compare/0.9.0-beta.1...0.9.0-beta.2)
640
+
641
+ ### Fixed
642
+ - Avoid iterating over prototype properties [`#437`](https://github.com/xmldom/xmldom/pull/437) / [`#436`](https://github.com/xmldom/xmldom/issues/436)
643
+
644
+ Thank you, [@Supraja9726](https://github.com/Supraja9726) for your contributions
645
+
646
+
647
+ ## [0.9.0-beta.1](https://github.com/xmldom/xmldom/compare/0.8.2...0.9.0-beta.1)
648
+
649
+ ### Fixed
650
+
651
+ **Only use HTML rules if mimeType matches** [`#338`](https://github.com/xmldom/xmldom/pull/338), fixes [`#203`](https://github.com/xmldom/xmldom/issues/203)
652
+
653
+ In the living specs for parsing XML and HTML, that this library is trying to implement,
654
+ there is a distinction between the different types of documents being parsed:
655
+ There are quite some rules that are different for parsing, constructing and serializing XML vs HTML documents.
656
+
657
+ 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.
658
+
659
+ 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.
660
+
661
+ 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.
662
+
663
+ 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`).
664
+
665
+ BREAKING CHANGE: The following methods no longer allow a (non spec compliant) boolean argument to toggle "HTML rules":
666
+ - `XMLSerializer.serializeToString`
667
+ - `Node.toString`
668
+ - `Document.toString`
669
+
670
+ The following interfaces have been implemented:
671
+ `DOMImplementation` now implements all methods defined in the DOM spec, but not all of the behavior is implemented (see docstring):
672
+ - `createDocument` creates an "XML Document" (prototype: `Document`, property `type` is `'xml'`)
673
+ - `createHTMLDocument` creates an "HTML Document" (type/prototype: `Document`, property `type` is `'html'`).
674
+ - when no argument is passed or the first argument is a string, the basic nodes for an HTML structure are created, as specified
675
+ - when the first argument is `false` no child nodes are created
676
+
677
+ `Document` now has two new readonly properties as specified in the DOM spec:
678
+ - `contentType` which is the mime-type that was used to create the document
679
+ - `type` which is either the string literal `'xml'` or `'html'`
680
+
681
+ `MIME_TYPE` (`/lib/conventions.js`):
682
+ - `hasDefaultHTMLNamespace` test if the provided string is one of the miem types that implies the default HTML namespace: `text/html` or `application/xhtml+xml`
683
+
684
+ Thank you [@weiwu-zhang](https://github.com/weiwu-zhang) for your contributions
685
+
686
+ ### Chore
687
+
688
+ - update multiple devDependencies
689
+
690
+
691
+ ## [0.8.2](https://github.com/xmldom/xmldom/compare/0.8.1...0.8.2)
692
+
693
+ ### Fixed
694
+ - fix(dom): Serialize `&gt;` as specified (#395) [`#58`](https://github.com/xmldom/xmldom/issues/58)
695
+
696
+ ### Other
697
+ - docs: Add `nodeType` values to public interface description [`#396`](https://github.com/xmldom/xmldom/pull/396)
698
+ - test: Add executable examples for node and typescript [`#317`](https://github.com/xmldom/xmldom/pull/317)
699
+ - fix(dom): Serialize `&gt;` as specified [`#395`](https://github.com/xmldom/xmldom/pull/395)
700
+ - chore: Add minimal `Object.assign` ponyfill [`#379`](https://github.com/xmldom/xmldom/pull/379)
701
+ - docs: Refine release documentation [`#378`](https://github.com/xmldom/xmldom/pull/378)
702
+ - chore: update various dev dependencies
703
+
704
+ Thank you [@niklasl](https://github.com/niklasl), [@cburatto](https://github.com/cburatto), [@SheetJSDev](https://github.com/SheetJSDev), [@pyrsmk](https://github.com/pyrsmk) for your contributions
705
+
706
+ ## [0.8.1](https://github.com/xmldom/xmldom/compare/0.8.0...0.8.1)
707
+
708
+ ### Fixes
709
+ - Only use own properties in entityMap [`#374`](https://github.com/xmldom/xmldom/pull/374)
710
+
711
+ ### Docs
712
+ - Add security policy [`#365`](https://github.com/xmldom/xmldom/pull/365)
713
+ - changelog: Correct contributor name and link [`#366`](https://github.com/xmldom/xmldom/pull/366)
714
+ - Describe release/publish steps [`#358`](https://github.com/xmldom/xmldom/pull/358), [`#376`](https://github.com/xmldom/xmldom/pull/376)
715
+ - Add snyk package health badge [`#360`](https://github.com/xmldom/xmldom/pull/360)
716
+
717
+
718
+ ## [0.8.0](https://github.com/xmldom/xmldom/compare/0.7.5...0.8.0)
719
+
720
+ ### Fixed
721
+ - Normalize all line endings according to XML specs [1.0](https://w3.org/TR/xml/#sec-line-ends) and [1.1](https://www.w3.org/TR/xml11/#sec-line-ends) \
722
+ BREAKING CHANGE: Certain combination of line break characters are normalized to a single `\n` before parsing takes place and will no longer be preserved.
723
+ - [`#303`](https://github.com/xmldom/xmldom/issues/303) / [`#307`](https://github.com/xmldom/xmldom/pull/307)
724
+ - [`#49`](https://github.com/xmldom/xmldom/issues/49), [`#97`](https://github.com/xmldom/xmldom/issues/97), [`#324`](https://github.com/xmldom/xmldom/issues/324) / [`#314`](https://github.com/xmldom/xmldom/pull/314)
725
+ - XMLSerializer: Preserve whitespace character references [`#284`](https://github.com/xmldom/xmldom/issues/284) / [`#310`](https://github.com/xmldom/xmldom/pull/310) \
726
+ BREAKING CHANGE: If you relied on the not spec compliant preservation of literal `\t`, `\n` or `\r` in **attribute values**.
727
+ To preserve those you will have to create XML that instead contains the correct numerical (or hexadecimal) equivalent (e.g. `&#x9;`, `&#xA;`, `&#xD;`).
728
+ - Drop deprecated exports `DOMImplementation` and `XMLSerializer` from `lib/dom-parser.js` [#53](https://github.com/xmldom/xmldom/issues/53) / [`#309`](https://github.com/xmldom/xmldom/pull/309)
729
+ BREAKING CHANGE: Use the one provided by the main package export.
730
+ - dom: Remove all links as part of `removeChild` [`#343`](https://github.com/xmldom/xmldom/issues/343) / [`#355`](https://github.com/xmldom/xmldom/pull/355)
731
+
732
+ ### Chore
733
+ - ci: Restore latest tested node version to 16.x [`#325`](https://github.com/xmldom/xmldom/pull/325)
734
+ - ci: Split test and lint steps into jobs [`#111`](https://github.com/xmldom/xmldom/issues/111) / [`#304`](https://github.com/xmldom/xmldom/pull/304)
735
+ - Pinned and updated devDependencies
736
+
737
+ Thank you [@marrus-sh](https://github.com/marrus-sh), [@victorandree](https://github.com/victorandree), [@mdierolf](https://github.com/mdierolf), [@tsabbay](https://github.com/tsabbay), [@fatihpense](https://github.com/fatihpense) for your contributions
738
+
739
+ ## [0.7.5](https://github.com/xmldom/xmldom/compare/0.7.4...0.7.5)
740
+
741
+ ### Fixes:
742
+
743
+ - Preserve default namespace when serializing [`#319`](https://github.com/xmldom/xmldom/issues/319) / [`#321`](https://github.com/xmldom/xmldom/pull/321)
744
+ Thank you, [@lupestro](https://github.com/lupestro)
745
+
746
+ ## [0.7.4](https://github.com/xmldom/xmldom/compare/0.7.3...0.7.4)
747
+
748
+ ### Fixes:
749
+
750
+ - Restore ability to parse `__prototype__` attributes [`#315`](https://github.com/xmldom/xmldom/pull/315)
751
+ Thank you, [@dsimpsonOMF](https://github.com/dsimpsonOMF)
752
+
753
+ ## [0.7.3](https://github.com/xmldom/xmldom/compare/0.7.2...0.7.3)
754
+
755
+ ### Fixes:
756
+
757
+ - Add doctype when parsing from string [`#277`](https://github.com/xmldom/xmldom/issues/277) / [`#301`](https://github.com/xmldom/xmldom/pull/301)
758
+ - Correct typo in error message [`#294`](https://github.com/xmldom/xmldom/pull/294)
759
+ Thank you, [@rrthomas](https://github.com/rrthomas)
760
+
761
+ ### Refactor:
762
+
763
+ - Improve exports & require statements, new main package entry [`#233`](https://github.com/xmldom/xmldom/pull/233)
764
+
765
+ ### Docs:
766
+
767
+ - Fix Stryker badge [`#298`](https://github.com/xmldom/xmldom/pull/298)
768
+ - Fix link to help-wanted issues [`#299`](https://github.com/xmldom/xmldom/pull/299)
769
+
770
+ ### Chore:
771
+
772
+ - Execute stryker:dry-run on branches [`#302`](https://github.com/xmldom/xmldom/pull/302)
773
+ - Fix stryker config [`#300`](https://github.com/xmldom/xmldom/pull/300)
774
+ - Split test and lint scripts [`#297`](https://github.com/xmldom/xmldom/pull/297)
775
+ - Switch to stryker dashboard owned by org [`#292`](https://github.com/xmldom/xmldom/pull/292)
776
+
777
+ ## [0.7.2](https://github.com/xmldom/xmldom/compare/0.7.1...0.7.2)
778
+
779
+ ### Fixes:
780
+
781
+ - Types: Add index.d.ts to packaged files [`#288`](https://github.com/xmldom/xmldom/pull/288)
782
+ Thank you, [@forty](https://github.com/forty)
783
+
784
+ ## [0.7.1](https://github.com/xmldom/xmldom/compare/0.7.0...0.7.1)
785
+
786
+ ### Fixes:
787
+
788
+ - Types: Copy types from DefinitelyTyped [`#283`](https://github.com/xmldom/xmldom/pull/283)
789
+ Thank you, [@kachkaev](https://github.com/kachkaev)
790
+
791
+ ### Chore:
792
+ - package.json: remove author, maintainers, etc. [`#279`](https://github.com/xmldom/xmldom/pull/279)
793
+
794
+ ## [0.7.0](https://github.com/xmldom/xmldom/compare/0.6.0...0.7.0)
795
+
796
+ Due to [`#271`](https://github.com/xmldom/xmldom/issue/271) this version was published as
797
+ - unscoped `xmldom` package to **github** (git tags [`0.7.0`](https://github.com/xmldom/xmldom/tree/0.7.0) and [`0.7.0+unscoped`](https://github.com/xmldom/xmldom/tree/0.7.0%2Bunscoped))
798
+ - scoped `@xmldom/xmldom` package to npm (git tag `0.7.0+scoped`)
799
+ For more details look at [`#278`](https://github.com/xmldom/xmldom/pull/278#issuecomment-902172483)
800
+
801
+ ### Fixes:
802
+
803
+ - Security: Misinterpretation of malicious XML input [`CVE-2021-32796`](https://github.com/xmldom/xmldom/security/advisories/GHSA-5fg8-2547-mr8q)
804
+ - Implement `Document.getElementsByClassName` as specified [`#213`](https://github.com/xmldom/xmldom/pull/213), thank you, [@ChALkeR](https://github.com/ChALkeR)
805
+ - Inherit namespace prefix from parent when required [`#268`](https://github.com/xmldom/xmldom/pull/268)
806
+ - Handle whitespace in closing tags [`#267`](https://github.com/xmldom/xmldom/pull/267)
807
+ - Update `DOMImplementation` according to recent specs [`#210`](https://github.com/xmldom/xmldom/pull/210)
808
+ BREAKING CHANGE: Only if you "passed features to be marked as available as a constructor arguments" and expected it to "magically work".
809
+ - No longer serializes any namespaces with an empty URI [`#244`](https://github.com/xmldom/xmldom/pull/244)
810
+ (related to [`#168`](https://github.com/xmldom/xmldom/pull/168) released in 0.6.0)
811
+ BREAKING CHANGE: Only if you rely on ["unsetting" a namespace prefix](https://github.com/xmldom/xmldom/pull/168#issuecomment-886984994) by setting it to an empty string
812
+ - Set `localName` as part of `Document.createElement` [`#229`](https://github.com/xmldom/xmldom/pull/229), thank you, [@rrthomas](https://github.com/rrthomas)
813
+
814
+ ### CI
815
+
816
+ - We are now additionally running tests against node v16
817
+ - Stryker tests on the master branch now run against node v14
818
+
819
+ ### Docs
820
+
821
+ - Describe relations with and between specs: [`#211`](https://github.com/xmldom/xmldom/pull/211), [`#247`](https://github.com/xmldom/xmldom/pull/247)
822
+
823
+ ## [0.6.0](https://github.com/xmldom/xmldom/compare/0.5.0...0.6.0)
824
+
825
+ Published to npm: 2021-04-17 16:41 UTC by @karfau as `xmldom`
826
+
827
+ ### Fixes
828
+
829
+ - Stop serializing empty namespace values like `xmlns:ds=""` [`#168`](https://github.com/xmldom/xmldom/pull/168)
830
+ BREAKING CHANGE: If your code expected empty namespaces attributes to be serialized.
831
+ Thank you, [@pdecat](https://github.com/pdecat) and [@FranckDepoortere](https://github.com/FranckDepoortere)
832
+ - Escape `<` to `&lt;` when serializing attribute values [`#198`](https://github.com/xmldom/xmldom/issues/198) / [`#199`](https://github.com/xmldom/xmldom/pull/199)
833
+
834
+ ## [0.5.0](https://github.com/xmldom/xmldom/compare/0.4.0...0.5.0)
835
+
836
+ Published to npm: 2021-03-09 03:59 UTC by @brodybits as `xmldom`
837
+
838
+ ### Fixes
839
+ - Avoid misinterpretation of malicious XML input - [`GHSA-h6q6-9hqw-rwfv`](https://github.com/xmldom/xmldom/security/advisories/GHSA-h6q6-9hqw-rwfv) (CVE-2021-21366)
840
+ - Improve error reporting; throw on duplicate attribute\
841
+ BREAKING CHANGE: It is currently not clear how to consistently deal with duplicate attributes, so it's also safer for our users to fail when detecting them.
842
+ It's possible to configure the `DOMParser.errorHandler` before parsing, to handle those errors differently.
843
+
844
+ To accomplish this and also be able to verify it in tests I needed to
845
+ - create a new `Error` type `ParseError` and export it
846
+ - Throw `ParseError` from `errorHandler.fatalError` and prevent those from being caught in `XMLReader`.
847
+ - export `DOMHandler` constructor as `__DOMHandler`
848
+ - Preserve quotes in DOCTYPE declaration
849
+ Since the only purpose of parsing the DOCTYPE is to be able to restore it when serializing, we decided that it would be best to leave the parsed `publicId` and `systemId` as is, including any quotes.
850
+ BREAKING CHANGE: If somebody relies on the actual unquoted values of those ids, they will need to take care of either single or double quotes and the right escaping.
851
+ (Without this change this would not have been possible because the SAX parser already dropped the information about the quotes that have been used in the source.)
852
+
853
+ https://www.w3.org/TR/2006/REC-xml11-20060816/#dtd
854
+ https://www.w3.org/TR/2006/REC-xml11-20060816/#IDAX1KS (External Entity Declaration)
855
+
856
+ - Fix breaking preprocessors' directives when parsing attributes [`#171`](https://github.com/xmldom/xmldom/pull/171)
857
+ - fix(dom): Escape `]]&gt;` when serializing CharData [`#181`](https://github.com/xmldom/xmldom/pull/181)
858
+ - Switch to (only) MIT license (drop problematic LGPL license option) [`#178`](https://github.com/xmldom/xmldom/pull/178)
859
+ - Export DOMException; remove custom assertions; etc. [`#174`](https://github.com/xmldom/xmldom/pull/174)
860
+
861
+ ### Docs
862
+ - Update MDN links in `readme.md` [`#188`](https://github.com/xmldom/xmldom/pull/188)
863
+
864
+ ## [0.4.0](https://github.com/xmldom/xmldom/compare/0.3.0...0.4.0)
865
+
866
+ Published to npm: 2020-10-27 00:44 UTC by @brodybits as `xmldom`
867
+
868
+ ### Fixes
869
+ - **BREAKING** Restore `&nbsp;` behavior from v0.1.27 [`#67`](https://github.com/xmldom/xmldom/pull/67)
870
+ - **BREAKING** Typecheck source param before parsing [`#113`](https://github.com/xmldom/xmldom/pull/113)
871
+ - Include documents in package files list [`#156`](https://github.com/xmldom/xmldom/pull/156)
872
+ - Preserve doctype with sysid [`#144`](https://github.com/xmldom/xmldom/pull/144)
873
+ - Remove ES6 syntax from getElementsByClassName [`#91`](https://github.com/xmldom/xmldom/pull/91)
874
+ - Revert "Add lowercase of åäö in entityMap" due to duplicate entries [`#84`](https://github.com/xmldom/xmldom/pull/84)
875
+ - fix: Convert all line separators to LF [`#66`](https://github.com/xmldom/xmldom/pull/66)
876
+
877
+ ### Docs
878
+ - Update CHANGELOG.md through version 0.3.0 [`#63`](https://github.com/xmldom/xmldom/pull/63)
879
+ - Update badges [`#78`](https://github.com/xmldom/xmldom/pull/78)
880
+ - Add .editorconfig file [`#104`](https://github.com/xmldom/xmldom/pull/104)
881
+ - Add note about import [`#79`](https://github.com/xmldom/xmldom/pull/79)
882
+ - Modernize & improve the example in readme.md [`#81`](https://github.com/xmldom/xmldom/pull/81)
883
+
884
+ ### CI
885
+ - Add Stryker Mutator [`#70`](https://github.com/xmldom/xmldom/pull/70)
886
+ - Add Stryker action to update dashboard [`#77`](https://github.com/xmldom/xmldom/pull/77)
887
+ - Add Node GitHub action workflow [`#64`](https://github.com/xmldom/xmldom/pull/64)
888
+ - add & enable eslint [`#106`](https://github.com/xmldom/xmldom/pull/106)
889
+ - Use eslint-plugin-es5 to enforce ES5 syntax [`#107`](https://github.com/xmldom/xmldom/pull/107)
890
+ - Recover `vows` tests, drop `proof` tests [`#59`](https://github.com/xmldom/xmldom/pull/59)
891
+ - Add jest tessuite and first tests [`#114`](https://github.com/xmldom/xmldom/pull/114)
892
+ - Add jest testsuite with `xmltest` cases [`#112`](https://github.com/xmldom/xmldom/pull/112)
893
+ - Configure Renovate [`#108`](https://github.com/xmldom/xmldom/pull/108)
894
+ - Test European HTML entities [`#86`](https://github.com/xmldom/xmldom/pull/86)
895
+ - Updated devDependencies
896
+
897
+ ### Other
898
+ - Remove files that are not of any use [`#131`](https://github.com/xmldom/xmldom/pull/131), [`#65`](https://github.com/xmldom/xmldom/pull/65), [`#33`](https://github.com/xmldom/xmldom/pull/33)
899
+
900
+ ## [0.3.0](https://github.com/xmldom/xmldom/compare/0.2.1...0.3.0)
901
+
902
+ Published to npm: 2020-03-04 16:32 UTC by @kethinov as `xmldom`
903
+
904
+ - **BREAKING** Node >=10.x is now required.
905
+ - **BREAKING** Remove `component.json` (deprecated package manager https://github.com/componentjs/guide)
906
+ - **BREAKING** Move existing sources into `lib` subdirectory.
907
+ - **POSSIBLY BREAKING** Introduce `files` entry in `package.json` and remove use of `.npmignore`.
908
+ - [Add `Document.getElementsByClassName`](https://github.com/xmldom/xmldom/issues/24).
909
+ - [Add `Node` to the list of exports](https://github.com/xmldom/xmldom/pull/27)
910
+ - [Add lowercase of åäö in `entityMap`](https://github.com/xmldom/xmldom/pull/23).
911
+ - Move CHANGELOG to markdown file.
912
+ - Move LICENSE to markdown file.
913
+
914
+ ## [0.2.1](https://github.com/xmldom/xmldom/compare/0.2.0...0.2.1)
915
+
916
+ Published to npm: 2019-12-20 00:40 UTC by @brodybits as `xmldom`
917
+
918
+ - Correct `homepage`, `repository` and `bugs` URLs in `package.json`.
919
+
920
+ ## [0.2.0](https://github.com/xmldom/xmldom/compare/v0.1.27...0.2.0)
921
+
922
+ Published to npm: 2019-12-20 00:19 UTC by @brodybits as `xmldom`
923
+
924
+ - Includes all **BREAKING** changes introduced in [`xmldom-alpha@v0.1.28`](#0128) by the original authors.
925
+ - **POSSIBLY BREAKING** [remove the `Object.create` check from the `_extends` method of `dom.js` that added a `__proto__` property](https://github.com/xmldom/xmldom/commit/0be2ae910a8a22c9ec2cac042e04de4c04317d2a#diff-7d1c5d97786fdf9af5446a241d0b6d56L19-L22) ().
926
+ - **POSSIBLY BREAKING** [remove code that added a `__proto__` property](https://github.com/xmldom/xmldom/commit/366159a76a181ce9a0d83f5dc48205686cfaf9cc)
927
+ - formatting/corrections in `package.json`
928
+
929
+ ## [0.1.31](https://github.com/xmldom/xmldom/compare/0.1.30...0.1.31)
930
+
931
+ Published to npm: 2019-12-19 22:34 UTC by @brodybits as `xmldom`
932
+
933
+ ## [0.1.30](https://github.com/xmldom/xmldom/compare/0.1.29...0.1.30)
934
+
935
+ Published to npm: 2019-12-19 22:30 UTC by @brodybits as `xmldom`
936
+
937
+ ## [0.1.29](https://github.com/xmldom/xmldom/compare/0.1.27...0.1.29)
938
+
939
+ Published to npm: 2019-12-19 22:26 UTC by @brodybits as `xmldom`
940
+
941
+ The patch versions (`0.1.29` - `0.1.31`) that have been released on the [v0.1.x branch](https://github.com/xmldom/xmldom/tree/0.1.x), to reflect the changed maintainers, **are branched off from [`0.1.27`](#0127) so they don't include the breaking changes introduced in [`xmldom-alpha@v0.1.28`](#0128)**:
942
+
943
+ ## Maintainer changes
944
+
945
+ After the last commit to the original repository <https://github.com/jindw/xmldom> on the 9th of May 2017, the first commit to <https://github.com/xmldom/xmldom> is from the 19th of December 2019. [The fork has been announced in the original repository on the 2nd of March 2020.](https://github.com/jindw/xmldom/issues/259)
946
+
947
+ The versions listed below have been published to one or both of the following packages:
948
+ - <https://www.npmjs.com/package/xmldom-alpha>
949
+ - <https://www.npmjs.com/package/xmldom>
950
+
951
+ It is currently not planned to continue publishing the `xmldom-alpha` package.
952
+
953
+ The new maintainers did not invest time to understand changes that led to the last `xmldom` version [`0.1.27`](#0127) published by the original maintainer, but consider it the basis for their work.
954
+ A timeline of all the changes that happened from that version until `0.3.0` is available in <https://github.com/xmldom/xmldom/issues/62>. Any related questions should be asked there.
955
+
956
+ ## [0.1.28](https://github.com/xmldom/xmldom/compare/v0.1.27...xmldom-alpha@v0.1.28)
957
+
958
+ Published to npm: 2017-05-08 02:51 UTC by @jindw as `xmldom-alpha`
959
+
960
+ - **BREAKING** includes [regression regarding `&nbsp;` (issue #57)](https://github.com/xmldom/xmldom/issues/57)
961
+ - [Fix `license` field in `package.json`](https://github.com/jindw/xmldom/pull/178)
962
+ - [Conditional converting of HTML entities](https://github.com/jindw/xmldom/pull/80)
963
+ - Fix `dom.js` serialization issue for missing document element ([example that failed on `toString()` before this change](https://github.com/xmldom/xmldom/blob/a58dcf7a265522e80ce520fe3be0cddb1b976f6f/test/parse/unclosedcomment.js#L10-L11))
964
+ - Add new module `entities.js`
965
+
966
+ ## [0.1.27](https://github.com/xmldom/xmldom/compare/0.1.26...0.1.27)
967
+
968
+ Published to npm: 2016-11-28 03:56 UTC by @jindw as `xmldom` and `xmldom-alpha`
969
+
970
+ Tags `0.1.24`, `0.1.25`, `0.1.26`, and `0.1.27` all point to the same git commit (`b53aa82`). These four versions were published within 24 hours in November 2016 with version bumps applied only to the working directory, not committed to git.
971
+
972
+ - Various bug fixes.
973
+
974
+ ## [0.1.26](https://github.com/xmldom/xmldom/compare/0.1.25...0.1.26)
975
+
976
+ Published to npm: 2016-11-28 03:47 UTC by @jindw as `xmldom`
977
+
978
+ Tags `0.1.24`, `0.1.25`, `0.1.26`, and `0.1.27` all point to the same git commit (`b53aa82`). These four versions were published within 24 hours in November 2016 with version bumps applied only to the working directory, not committed to git.
979
+
980
+ - Details unknown
981
+
982
+ ## [0.1.25](https://github.com/xmldom/xmldom/compare/0.1.24...0.1.25)
983
+
984
+ Published to npm: 2016-11-28 03:35 UTC by @jindw as `xmldom`
985
+
986
+ Tags `0.1.24`, `0.1.25`, `0.1.26`, and `0.1.27` all point to the same git commit (`b53aa82`). These four versions were published within 24 hours in November 2016 with version bumps applied only to the working directory, not committed to git.
987
+
988
+ - Details unknown
989
+
990
+ ## [0.1.24](https://github.com/xmldom/xmldom/compare/0.1.22...0.1.24)
991
+
992
+ Published to npm: 2016-11-27 14:00 UTC by @jindw as `xmldom` and `xmldom-alpha`
993
+
994
+ Tags `0.1.24`, `0.1.25`, `0.1.26`, and `0.1.27` all point to the same git commit (`b53aa82`). These four versions were published within 24 hours in November 2016 with version bumps applied only to the working directory, not committed to git.
995
+
996
+ - Added node filter.
997
+
998
+ ## [0.1.23](https://github.com/xmldom/xmldom/compare/0.1.22...0.1.23)
999
+
1000
+ Published to npm: 2016-05-20 04:24 UTC by @jindw as `xmldom-alpha`
1001
+
1002
+ - Add namespace support for nest node serialize.
1003
+ - Various other bug fixes.
1004
+
1005
+ ## [0.1.22](https://github.com/xmldom/xmldom/compare/0.1.21...0.1.22)
1006
+
1007
+ Published to npm: 2016-01-30 11:50 UTC by @jindw as `xmldom`
1008
+
1009
+ - Merge XMLNS serialization.
1010
+ - Remove \r from source string.
1011
+ - Print namespaces for child elements.
1012
+ - Switch references to nodeType to use named constants.
1013
+ - Add nodelist toString support.
1014
+
1015
+ ## [0.1.21](https://github.com/xmldom/xmldom/compare/0.1.20...0.1.21)
1016
+
1017
+ Published to npm: 2016-01-13 11:41 UTC by @jindw as `xmldom`
1018
+
1019
+ - Fix serialize bug.
1020
+
1021
+ ## [0.1.20](https://github.com/xmldom/xmldom/compare/0.1.19...0.1.20)
1022
+
1023
+ Published to npm: 2016-01-10 08:23 UTC by @jindw as `xmldom`
1024
+
1025
+ - Optimize invalid XML support.
1026
+ - Add toString sorter for attributes output.
1027
+ - Add html self closed node button.
1028
+ - Add `*` NS support for getElementsByTagNameNS.
1029
+ - Convert attribute's value to string in setAttributeNS.
1030
+ - Add support for HTML entities for HTML docs only.
1031
+ - Fix TypeError when Document is created with DocumentType.
1032
+
1033
+ ## [0.1.19](https://github.com/xmldom/xmldom/compare/0.1.18...0.1.19)
1034
+
1035
+ Published to npm: 2014-01-28 15:15 UTC by @jindw as `xmldom`
1036
+
1037
+ - Fix [infinite loop on unclosed comment (jindw/xmldom#68)](https://github.com/jindw/xmldom/issues/68)
1038
+ - Add error report for unclosed tag.
1039
+ - Various other fixes.
1040
+
1041
+ ## [0.1.18](https://github.com/xmldom/xmldom/compare/0.1.17...0.1.18)
1042
+
1043
+ Published to npm: 2014-01-17 06:59 UTC by @bigeasy as `xmldom`
1044
+
1045
+ - Add default `ns` support.
1046
+ - parseFromString now renders entirely plain text documents as textNode.
1047
+ - Enable option to ignore white space on parsing.
1048
+
1049
+ ## [0.1.17](https://github.com/xmldom/xmldom/compare/0.1.16...0.1.17)
1050
+
1051
+ Published to npm: 2013-12-16 03:07 UTC by @jindw as `xmldom`
1052
+
1053
+ No version bump commit for 0.1.17 was found in git history. The tag `0.1.17` points to the commit immediately preceding the 0.1.18 version bump (`87f63e6`, parent of `9ddac14`), which is the last committed state before the next version.
1054
+
1055
+ ## [0.1.16](https://github.com/xmldom/xmldom/compare/0.1.15...0.1.16)
1056
+
1057
+ Published to npm: 2013-05-04 15:00 UTC by @bigeasy as `xmldom`
1058
+
1059
+ - Correctly handle multibyte Unicode greater than two byts. #57. #56.
1060
+ - Initial unit testing and test coverage. #53. #46. #19.
1061
+ - Create Bower `component.json` #52.
1062
+
1063
+ ## [0.1.15](https://github.com/xmldom/xmldom/compare/0.1.14...0.1.15)
1064
+
1065
+ Published to npm: 2013-04-03 02:41 UTC by @bigeasy as `xmldom`
1066
+
1067
+ ## [0.1.14](https://github.com/xmldom/xmldom/compare/0.1.13...0.1.14)
1068
+
1069
+ Published to npm: 2013-03-31 15:31 UTC by @bigeasy as `xmldom`
1070
+
1071
+ ## [0.1.13](https://github.com/xmldom/xmldom/compare/0.1.12...0.1.13)
1072
+
1073
+ Published to npm: 2012-10-02 11:35 UTC by @jindw as `xmldom`
1074
+
1075
+ ## [0.1.12](https://github.com/xmldom/xmldom/compare/0.1.11...0.1.12)
1076
+
1077
+ Published to npm: 2012-09-03 15:02 UTC as `xmldom`
1078
+
1079
+ No version bump commit for 0.1.12 was found in git history. The tag `0.1.12` points to the commit immediately preceding the 0.1.13 version bump (`47fa9b8`, parent of `eb17b3a`), which is the last committed state before the next version.
1080
+
1081
+ ## [0.1.11](https://github.com/xmldom/xmldom/compare/0.1.10...0.1.11)
1082
+
1083
+ Published to npm: 2012-06-18 10:45 UTC by @jindw as `xmldom`
1084
+
1085
+ ## [0.1.10](https://github.com/xmldom/xmldom/compare/0.1.9...0.1.10)
1086
+
1087
+ Published to npm: 2012-06-14 02:54 UTC by @jindw as `xmldom`
1088
+
1089
+ ## [0.1.9](https://github.com/xmldom/xmldom/compare/0.1.8...0.1.9)
1090
+
1091
+ Published to npm: 2012-06-08 06:18 UTC by @jindw as `xmldom`
1092
+
1093
+ ## [0.1.8](https://github.com/xmldom/xmldom/compare/0.1.7...0.1.8)
1094
+
1095
+ Published to npm: 2012-05-29 13:30 UTC by @jindw as `xmldom`
1096
+
1097
+ - Add: some test case from node-o3-xml(excludes xpath support)
1098
+ - Fix: remove existed attribute before setting (bug introduced in v0.1.5)
1099
+ - Fix: index direct access for childNodes and any NodeList collection(not w3c standard)
1100
+ - Fix: remove last child bug
1101
+
1102
+ ## [0.1.7](https://github.com/xmldom/xmldom/compare/0.1.6...0.1.7)
1103
+
1104
+ Published to npm: 2012-05-29 03:05 UTC by @jindw as `xmldom`
1105
+
1106
+ ## [0.1.6](https://github.com/xmldom/xmldom/compare/0.1.5...0.1.6)
1107
+
1108
+ Published to npm: 2012-05-28 12:49 UTC by @jindw as `xmldom`
1109
+
1110
+ ## [0.1.5](https://github.com/xmldom/xmldom/compare/0.1.4...0.1.5)
1111
+
1112
+ Published to npm: 2012-05-25 17:43 UTC by @jindw as `xmldom`
1113
+
1114
+ ## [0.1.4](https://github.com/xmldom/xmldom/compare/0.1.3...0.1.4)
1115
+
1116
+ Published to npm: 2012-05-22 16:41 UTC by @jindw as `xmldom`
1117
+
1118
+ ## [0.1.3](https://github.com/xmldom/xmldom/compare/0.1.2...0.1.3)
1119
+
1120
+ Published to npm: 2012-05-22 16:39 UTC by @jindw as `xmldom`
1121
+
1122
+ ## [0.1.2](https://github.com/xmldom/xmldom/compare/0.1.1...0.1.2)
1123
+
1124
+ Published to npm: 2012-02-03 10:49 UTC by @jindw as `xmldom`
1125
+
1126
+ ## [0.1.1](https://github.com/xmldom/xmldom/compare/0.1.0...0.1.1)
1127
+
1128
+ Published to npm: 2012-01-10 07:18 UTC by @jindw as `xmldom`
1129
+
1130
+ ## [0.1.0](https://github.com/xmldom/xmldom/commit/5d770d4)
1131
+
1132
+ Published to npm: 2012-01-06 09:49 UTC by @jindw as `xmldom`