open-agreements 0.7.3 → 0.7.5

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 (98) hide show
  1. package/README.md +96 -294
  2. package/dist/commands/list.js +1 -1
  3. package/dist/commands/list.js.map +1 -1
  4. package/dist/core/checklist/docx-import.d.ts.map +1 -1
  5. package/dist/core/metadata.d.ts +1 -0
  6. package/dist/core/metadata.d.ts.map +1 -1
  7. package/dist/core/metadata.js +1 -0
  8. package/dist/core/metadata.js.map +1 -1
  9. package/dist/core/recipe/patcher.js +0 -24
  10. package/dist/core/recipe/patcher.js.map +1 -1
  11. package/dist/core/recipe/verifier.js.map +1 -1
  12. package/dist/core/selector.js +0 -1
  13. package/dist/core/selector.js.map +1 -1
  14. package/dist/core/template-search.d.ts +36 -0
  15. package/dist/core/template-search.d.ts.map +1 -0
  16. package/dist/core/template-search.js +84 -0
  17. package/dist/core/template-search.js.map +1 -0
  18. package/gemini-extension.json +1 -1
  19. package/node_modules/@usejunior/docx-core/dist/.tsbuildinfo +1 -1
  20. package/node_modules/@usejunior/docx-core/dist/atomizer.d.ts.map +1 -1
  21. package/node_modules/@usejunior/docx-core/dist/atomizer.js +12 -4
  22. package/node_modules/@usejunior/docx-core/dist/atomizer.js.map +1 -1
  23. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.d.ts +0 -14
  24. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.d.ts.map +1 -1
  25. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.js +31 -2
  26. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/atomLcs.js.map +1 -1
  27. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.d.ts +11 -0
  28. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.d.ts.map +1 -1
  29. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.js +180 -6
  30. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/documentReconstructor.js.map +1 -1
  31. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.d.ts +14 -4
  32. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.d.ts.map +1 -1
  33. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.js +344 -60
  34. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/hierarchicalLcs.js.map +1 -1
  35. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.d.ts +35 -1
  36. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.d.ts.map +1 -1
  37. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.js +186 -12
  38. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/inPlaceModifier.js.map +1 -1
  39. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/pipeline.d.ts.map +1 -1
  40. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/pipeline.js +31 -13
  41. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/pipeline.js.map +1 -1
  42. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/xmlToWmlElement.d.ts.map +1 -1
  43. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/xmlToWmlElement.js +3 -2
  44. package/node_modules/@usejunior/docx-core/dist/baselines/atomizer/xmlToWmlElement.js.map +1 -1
  45. package/node_modules/@usejunior/docx-core/dist/format-detection.d.ts.map +1 -1
  46. package/node_modules/@usejunior/docx-core/dist/format-detection.js +2 -1
  47. package/node_modules/@usejunior/docx-core/dist/format-detection.js.map +1 -1
  48. package/node_modules/@usejunior/docx-core/dist/move-detection.d.ts.map +1 -1
  49. package/node_modules/@usejunior/docx-core/dist/move-detection.js +3 -4
  50. package/node_modules/@usejunior/docx-core/dist/move-detection.js.map +1 -1
  51. package/node_modules/@usejunior/docx-core/dist/primitives/comments.d.ts +2 -2
  52. package/node_modules/@usejunior/docx-core/dist/primitives/comments.d.ts.map +1 -1
  53. package/node_modules/@usejunior/docx-core/dist/primitives/comments.js +7 -2
  54. package/node_modules/@usejunior/docx-core/dist/primitives/comments.js.map +1 -1
  55. package/node_modules/@usejunior/docx-core/dist/primitives/document.d.ts +2 -2
  56. package/node_modules/@usejunior/docx-core/dist/primitives/document.d.ts.map +1 -1
  57. package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.d.ts +1 -5
  58. package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.d.ts.map +1 -1
  59. package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.js +12 -25
  60. package/node_modules/@usejunior/docx-core/dist/primitives/dom-helpers.js.map +1 -1
  61. package/node_modules/@usejunior/docx-core/dist/primitives/layout.d.ts.map +1 -1
  62. package/node_modules/@usejunior/docx-core/dist/primitives/layout.js +4 -6
  63. package/node_modules/@usejunior/docx-core/dist/primitives/layout.js.map +1 -1
  64. package/node_modules/@usejunior/docx-core/dist/primitives/xml.d.ts.map +1 -1
  65. package/node_modules/@usejunior/docx-core/dist/primitives/xml.js +2 -0
  66. package/node_modules/@usejunior/docx-core/dist/primitives/xml.js.map +1 -1
  67. package/node_modules/@usejunior/docx-core/package.json +3 -3
  68. package/node_modules/@xmldom/xmldom/CHANGELOG.md +939 -0
  69. package/node_modules/{@usejunior/docx-core/node_modules/@xmldom → @xmldom}/xmldom/SECURITY.md +8 -8
  70. package/node_modules/@xmldom/xmldom/index.d.ts +1664 -0
  71. package/node_modules/{@usejunior/docx-core/node_modules/@xmldom → @xmldom}/xmldom/lib/.eslintrc.yml +1 -0
  72. package/node_modules/@xmldom/xmldom/lib/conventions.js +429 -0
  73. package/node_modules/@xmldom/xmldom/lib/dom-parser.js +586 -0
  74. package/node_modules/@xmldom/xmldom/lib/dom.js +3192 -0
  75. package/node_modules/{@usejunior/docx-core/node_modules/@xmldom → @xmldom}/xmldom/lib/entities.js +14 -9
  76. package/node_modules/@xmldom/xmldom/lib/errors.js +202 -0
  77. package/node_modules/@xmldom/xmldom/lib/grammar.js +533 -0
  78. package/node_modules/@xmldom/xmldom/lib/index.js +41 -0
  79. package/node_modules/@xmldom/xmldom/lib/sax.js +929 -0
  80. package/node_modules/{@usejunior/docx-core/node_modules/@xmldom → @xmldom}/xmldom/package.json +24 -21
  81. package/node_modules/{@usejunior/docx-core/node_modules/@xmldom → @xmldom}/xmldom/readme.md +56 -48
  82. package/package.json +4 -4
  83. package/skills/cloud-service-agreement/SKILL.md +1 -1
  84. package/skills/cloud-service-agreement/template-filling-execution.md +92 -0
  85. package/skills/nda/SKILL.md +1 -1
  86. package/skills/nda/template-filling-execution.md +92 -0
  87. package/skills/open-agreements/SKILL.md +1 -1
  88. package/skills/open-agreements/template-filling-execution.md +92 -0
  89. package/skills/safe/SKILL.md +1 -1
  90. package/skills/safe/template-filling-execution.md +92 -0
  91. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/CHANGELOG.md +0 -468
  92. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/index.d.ts +0 -43
  93. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/conventions.js +0 -203
  94. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/dom-parser.js +0 -322
  95. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/dom.js +0 -1879
  96. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/index.js +0 -4
  97. package/node_modules/@usejunior/docx-core/node_modules/@xmldom/xmldom/lib/sax.js +0 -662
  98. /package/node_modules/{@usejunior/docx-core/node_modules/@xmldom → @xmldom}/xmldom/LICENSE +0 -0
@@ -0,0 +1,939 @@
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.9](https://github.com/xmldom/xmldom/compare/0.9.8...0.9.9)
8
+
9
+ ### Added
10
+
11
+ - implement `ParentNode.children` getter [`#960`](https://github.com/xmldom/xmldom/pull/960) / [`#410`](https://github.com/xmldom/xmldom/issues/410)
12
+
13
+ ### Fixed
14
+
15
+ - 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)
16
+ - 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)
17
+ - correctly traverse ancestor chain in `Node.contains` [`#931`](https://github.com/xmldom/xmldom/pull/931)
18
+
19
+ 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.
20
+
21
+ ### Chore
22
+
23
+ - updated dependencies
24
+
25
+ Thank you,
26
+ [@stevenobiajulu](https://github.com/stevenobiajulu),
27
+ [@yoshi389111](https://github.com/yoshi389111),
28
+ [@thesmartshadow](https://github.com/thesmartshadow),
29
+ for your contributions
30
+
31
+
32
+ ## [0.8.12](https://github.com/xmldom/xmldom/compare/0.8.11...0.8.12)
33
+
34
+ ### Fixed
35
+
36
+ - preserve trailing whitespace in ProcessingInstruction data [`#962`](https://github.com/xmldom/xmldom/pull/962) / [`#42`](https://github.com/xmldom/xmldom/issues/42)
37
+ - 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)
38
+ - 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)
39
+
40
+ 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.
41
+
42
+ Thank you,
43
+ [@thesmartshadow](https://github.com/thesmartshadow),
44
+ [@stevenobiajulu](https://github.com/stevenobiajulu),
45
+ for your contributions
46
+
47
+ ## [0.8.11](https://github.com/xmldom/xmldom/compare/0.8.10...0.8.11)
48
+
49
+ ### Fixed
50
+
51
+ - update `ownerDocument` when moving nodes between documents [`#933`](https://github.com/xmldom/xmldom/pull/933) / [`#932`](https://github.com/xmldom/xmldom/issues/932)
52
+
53
+ Thank you, [@shunkica](https://github.com/shunkica), for your contributions
54
+
55
+ ## [0.9.8](https://github.com/xmldom/xmldom/compare/0.9.8...0.9.7)
56
+
57
+ ### Fixed
58
+
59
+ - fix: replace \u2029 as part of normalizeLineEndings [`#839`](https://github.com/xmldom/xmldom/pull/839) / [`#838`](https://github.com/xmldom/xmldom/issues/838)
60
+ - perf: speed up line detection [`#847`](https://github.com/xmldom/xmldom/pull/847) / [`#838`](https://github.com/xmldom/xmldom/issues/838)
61
+
62
+ ### Chore
63
+
64
+ - updated dependencies
65
+ - drop jazzer and rxjs devDependencies [`#845`](https://github.com/xmldom/xmldom/pull/845)
66
+
67
+ Thank you,
68
+ [@kboshold](https://github.com/kboshold),
69
+ [@Ponynjaa](https://github.com/Ponynjaa),
70
+ for your contributions.
71
+
72
+
73
+ ## [0.9.7](https://github.com/xmldom/xmldom/compare/0.9.6...0.9.7)
74
+
75
+ ### Added
76
+
77
+ - Implementation of `hasAttributes` [`#804`](https://github.com/xmldom/xmldom/pull/804)
78
+
79
+ ### Fixed
80
+
81
+ - 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)
82
+ - allow case-insensitive DOCTYPE in HTML [`#817`](https://github.com/xmldom/xmldom/issues/817) / [`#819`](https://github.com/xmldom/xmldom/pull/819)
83
+
84
+ ### Performance
85
+
86
+ - simplify `DOM.compareDocumentPosition` [`#805`](https://github.com/xmldom/xmldom/pull/805)
87
+
88
+ ### Chore
89
+
90
+ - updated devDependencies
91
+
92
+ Thank you,
93
+ [@zorkow](https://github.com/zorkow),
94
+ [@Ponynjaa](https://github.com/Ponynjaa),
95
+ [@WesselKroos](https://github.com/WesselKroos),
96
+ for your contributions.
97
+
98
+
99
+ ## [0.9.6](https://github.com/xmldom/xmldom/compare/0.9.5...0.9.6)
100
+
101
+ ### Fixed
102
+
103
+ - 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)
104
+
105
+ ### Chore
106
+
107
+ - updated devDependencies
108
+ - migrate renovate config [`#792`](https://github.com/xmldom/xmldom/pull/792)
109
+
110
+ Thank you, [@eglitise](https://github.com/eglitise), for your contributions.
111
+
112
+
113
+ ## [0.9.5](https://github.com/xmldom/xmldom/compare/0.9.4...0.9.5)
114
+
115
+ ### Fixed
116
+
117
+ - fix: re-index childNodes on insertBefore [`#763`](https://github.com/xmldom/xmldom/issues/763) / [`#766`](https://github.com/xmldom/xmldom/pull/766)
118
+
119
+ Thank you,
120
+ [@mureinik](https://github.com/mureinik),
121
+ for your contributions.
122
+
123
+
124
+ ## [0.9.4](https://github.com/xmldom/xmldom/compare/0.9.3...0.9.4)
125
+
126
+ ### Fixed
127
+
128
+ - restore performance for large amount of child nodes [`#748`](https://github.com/xmldom/xmldom/issues/748) / [`#760`](https://github.com/xmldom/xmldom/pull/760)
129
+ - types: correct error handler level to `warning` (#759) [`#754`](https://github.com/xmldom/xmldom/issues/754) / [`#759`](https://github.com/xmldom/xmldom/pull/759)
130
+
131
+ ### Docs
132
+
133
+ - test: verify BOM handling [`#758`](https://github.com/xmldom/xmldom/pull/758)
134
+
135
+ Thank you,
136
+ [@luffynando](https://github.com/luffynando),
137
+ [@mattiasw](https://github.com/mattiasw),
138
+ [@JoinerDev](https://github.com/JoinerDev),
139
+ for your contributions.
140
+
141
+
142
+ ## [0.9.3](https://github.com/xmldom/xmldom/compare/0.9.2...0.9.3)
143
+
144
+ ### Fixed
145
+
146
+ - restore more `Node` and `ProcessingInstruction` types [`#725`](https://github.com/xmldom/xmldom/issues/725) / [`#726`](https://github.com/xmldom/xmldom/pull/726)
147
+ - `getElements*` methods return `LiveNodeList<Element>` [`#731`](https://github.com/xmldom/xmldom/issues/731) / [`#734`](https://github.com/xmldom/xmldom/pull/734)
148
+ - Add more missing `Node` props [`#728`](https://github.com/xmldom/xmldom/pull/728), triggered by unclosed [`#724`](https://github.com/xmldom/xmldom/pull/724)
149
+
150
+ ### Docs
151
+
152
+ - Update supported runtimes in readme (NodeJS >= 14.6 and other [ES5 compatible runtimes](https://compat-table.github.io/compat-table/es5/))
153
+
154
+ ### Chore
155
+
156
+ - updates devDependencies
157
+
158
+ Thank you,
159
+ [@Ponynjaa](https://github.com/Ponynjaa),
160
+ [@ayZagen](https://github.com/ayZagen),
161
+ [@sserdyuk](https://github.com/sserdyuk),
162
+ [@wydengyre](https://github.com/wydengyre),
163
+ [@mykola-mokhnach](https://github.com/mykola-mokhnach),
164
+ [@benkroeger](https://github.com/benkroeger),
165
+ for your contributions.
166
+
167
+ # Changelog
168
+
169
+ All notable changes to this project will be documented in this file.
170
+
171
+ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
172
+
173
+ ## [0.9.2](https://github.com/xmldom/xmldom/compare/0.9.1...0.9.2)
174
+
175
+ ### Feature
176
+
177
+ - add `Element.getElementsByClassName` [`#722`](https://github.com/xmldom/xmldom/pull/722)
178
+
179
+ ### Fixed
180
+
181
+ - 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)
182
+
183
+ Thank you, [@censujiang](https://github.com/censujiang), [@Mathias-S](https://github.com/Mathias-S), for your contributions
184
+
185
+
186
+ ## [0.9.1](https://github.com/xmldom/xmldom/compare/0.9.0...0.9.1)
187
+
188
+ ### Fixed
189
+
190
+ - DOMParser.parseFromString requires mimeType as second argument [`#713`](https://github.com/xmldom/xmldom/pull/713)
191
+ - correct spelling of `isHTMLMimeType` in type definition [`#715`](https://github.com/xmldom/xmldom/pull/715) / [`#712`](https://github.com/xmldom/xmldom/issues/712)
192
+ - 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)
193
+
194
+ ### Other
195
+
196
+ - minimum tested node version is 14 [`#710`](https://github.com/xmldom/xmldom/pull/710)
197
+
198
+ Thank you, [@krystofwoldrich](https://github.com/krystofwoldrich), [@marvinruder](https://github.com/marvinruder), [@amacneil](https://github.com/amacneil), [@defunctzombie](https://github.com/defunctzombie),
199
+ [@tjhorner](https://github.com/tjhorner), [@danon](https://github.com/danon), for your contributions
200
+
201
+
202
+ ## [0.9.0](https://github.com/xmldom/xmldom/compare/0.9.0-beta.11...0.9.0)
203
+
204
+ - [Discussion](https://github.com/xmldom/xmldom/discussions/435)
205
+ - [Summary on dev.to](https://dev.to/karfau/release-090-of-xmldomxmldom-4106)
206
+
207
+ ### Features
208
+
209
+ - feat: expose all DOM level 2 element prototypes [`#637`](https://github.com/xmldom/xmldom/pull/637) / [`#40`](https://github.com/xmldom/xmldom/issues/40)
210
+ - feat: add iterator function to NodeList and NamedNodeMap [`#634`](https://github.com/xmldom/xmldom/pull/634) / [`#633`](https://github.com/xmldom/xmldom/issues/633)
211
+
212
+ ### Fixed
213
+
214
+ - parse empty/whitspace only doctype internal subset [`#692`](https://github.com/xmldom/xmldom/pull/692)
215
+ - avoid prototype clash in namespace prefix [`#554`](https://github.com/xmldom/xmldom/pull/554)
216
+ - report fatalError when doctype is inside elements [`#550`](https://github.com/xmldom/xmldom/pull/550)
217
+
218
+ ### Other
219
+
220
+ - test: add fuzz target and regression tests [`#556`](https://github.com/xmldom/xmldom/pull/556)
221
+ - chore: improve .gitignore and provide .envrc.template [`#697`](https://github.com/xmldom/xmldom/pull/697)
222
+ - chore: Apply security best practices [`#546`](https://github.com/xmldom/xmldom/pull/546)
223
+ - ci: check test coverage in PRs [`#524`](https://github.com/xmldom/xmldom/pull/524)
224
+ - docs: add missing commas to readme [`#566`](https://github.com/xmldom/xmldom/pull/566)
225
+ - docs: click to copy install command in readme [`#644`](https://github.com/xmldom/xmldom/pull/644)
226
+ - docs: enhance jsdoc comments [`#511`](https://github.com/xmldom/xmldom/pull/511)
227
+
228
+ Thank you, [@kboshold](https://github.com/kboshold), [@edi9999](https://github.com/edi9999), [@apupier](https://github.com/apupier),
229
+ [@shunkica](https://github.com/shunkica), [@homer0](https://github.com/homer0), [@jhauga](https://github.com/jhauga),
230
+ [@UdayKharatmol](https://github.com/UdayKharatmol), for your contributions
231
+
232
+
233
+ ## [0.9.0-beta.11](https://github.com/xmldom/xmldom/compare/0.9.0-beta.10...0.9.0-beta.11)
234
+
235
+ ### Fixed
236
+
237
+ - 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)
238
+ BREAKING-CHANGE: Reports more not well-formed documents as fatalError
239
+ and drop broken support for optional and unclosed tags in HTML.
240
+
241
+ ### Other
242
+
243
+ - Translate/drop non English comments [`#518`](https://github.com/xmldom/xmldom/pull/518)
244
+ - use node v16 for development [`#517`](https://github.com/xmldom/xmldom/pull/517)
245
+
246
+ Thank you, [@brodybits](https://github.com/brodybits), [@cbettinger](https://github.com/cbettinger), [@josecarlosrx](https://github.com/josecarlosrx), for your contributions
247
+
248
+
249
+ ## [0.9.0-beta.10](https://github.com/xmldom/xmldom/compare/0.9.0-beta.9...0.9.0-beta.10)
250
+
251
+ ### Fixed
252
+
253
+ - dom: prevent iteration over deleted items [`#514`](https://github.com/xmldom/xmldom/pull/514)/ [`#499`](https://github.com/xmldom/xmldom/issues/499)
254
+
255
+ ### Chore
256
+
257
+ - use prettier plugin for jsdoc [`#513`](https://github.com/xmldom/xmldom/pull/513)
258
+
259
+ Thank you, [@qtow](https://github.com/qtow), [@shunkica](https://github.com/shunkica), [@homer0](https://github.com/homer0), for your contributions
260
+
261
+
262
+ ## [0.8.10](https://github.com/xmldom/xmldom/compare/0.8.9...0.8.10)
263
+
264
+ ### Fixed
265
+
266
+ - dom: prevent iteration over deleted items [`#514`](https://github.com/xmldom/xmldom/pull/514)/ [`#499`](https://github.com/xmldom/xmldom/issues/499)
267
+
268
+ Thank you, [@qtow](https://github.com/qtow), for your contributions
269
+
270
+
271
+ ## [0.7.13](https://github.com/xmldom/xmldom/compare/0.7.12...0.7.13)
272
+
273
+ ### Fixed
274
+
275
+ - dom: prevent iteration over deleted items [`#514`](https://github.com/xmldom/xmldom/pull/514)/ [`#499`](https://github.com/xmldom/xmldom/issues/499)
276
+
277
+ Thank you, [@qtow](https://github.com/qtow), for your contributions
278
+
279
+
280
+ ## [0.9.0-beta.9](https://github.com/xmldom/xmldom/compare/0.9.0-beta.8...0.9.0-beta.9)
281
+
282
+ ### Fixed
283
+
284
+ - Set nodeName property in ProcessingInstruction [`#509`](https://github.com/xmldom/xmldom/pull/509) / [`#505`](https://github.com/xmldom/xmldom/issues/505)
285
+ - 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)\
286
+ 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.
287
+ - DOMParser: Align parseFromString errors with specs [`#454`](https://github.com/xmldom/xmldom/pull/454)
288
+
289
+ ### Chore
290
+
291
+ - stop running mutation tests using stryker [`#496`](https://github.com/xmldom/xmldom/pull/496)
292
+ - make `toErrorSnapshot` windows compatible [`#503`](https://github.com/xmldom/xmldom/pull/503)
293
+
294
+ 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
295
+
296
+
297
+ ## [0.8.9](https://github.com/xmldom/xmldom/compare/0.8.8...0.8.9)
298
+
299
+ ### Fixed
300
+
301
+ - Set nodeName property in ProcessingInstruction [`#509`](https://github.com/xmldom/xmldom/pull/509) / [`#505`](https://github.com/xmldom/xmldom/issues/505)
302
+
303
+ Thank you, [@cjbarth](https://github.com/cjbarth), for your contributions
304
+
305
+
306
+ ## [0.7.12](https://github.com/xmldom/xmldom/compare/0.7.11...0.7.12)
307
+
308
+ ### Fixed
309
+
310
+ - Set nodeName property in ProcessingInstruction [`#509`](https://github.com/xmldom/xmldom/pull/509) / [`#505`](https://github.com/xmldom/xmldom/issues/505)
311
+
312
+ Thank you, [@cjbarth](https://github.com/cjbarth), for your contributions
313
+
314
+
315
+ ## [0.9.0-beta.8](https://github.com/xmldom/xmldom/compare/0.9.0-beta.7...0.9.0-beta.8)
316
+
317
+ ### Fixed
318
+
319
+ - Throw DOMException when calling removeChild with invalid parameter [`#494`](https://github.com/xmldom/xmldom/pull/494) / [`#135`](https://github.com/xmldom/xmldom/issues/135)
320
+
321
+ BREAKING CHANGE: Previously it was possible (but not documented) to call `Node.removeChild` with any node in the tree,
322
+ 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.
323
+
324
+ Thank you, [@noseworthy](https://github.com/noseworthy), [@davidmc24](https://github.com/davidmc24), for your contributions
325
+
326
+
327
+ ## [0.9.0-beta.7](https://github.com/xmldom/xmldom/compare/0.9.0-beta.6...0.9.0-beta.7)
328
+
329
+ ### Feature
330
+
331
+ - Add `compareDocumentPosition` method from level 3 spec. [`#488`](https://github.com/xmldom/xmldom/pull/488)
332
+
333
+ ### Fixed
334
+
335
+ - `getAttribute` and `getAttributeNS` should return `null` (#477) [`#46`](https://github.com/xmldom/xmldom/issues/46)
336
+ - several issues in NamedNodeMap and Element (#482) [`#46`](https://github.com/xmldom/xmldom/issues/46)
337
+ - 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)
338
+ - extend list of HTML entities [`#489`](https://github.com/xmldom/xmldom/pull/489)
339
+
340
+ 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.
341
+ All of the changes are fixing misalignment with the DOM specs, so if you expected it to work as specified,
342
+ nothing should break for you.
343
+
344
+ ### Chore
345
+
346
+ - update multiple devDependencies
347
+ - Configure jest (correctly) and wallaby [`#481`](https://github.com/xmldom/xmldom/pull/481) / [`#483`](https://github.com/xmldom/xmldom/pull/483)
348
+
349
+ Thank you, [@bulandent](https://github.com/bulandent), [@zorkow](https://github.com/zorkow), for your contributions
350
+
351
+
352
+ ## [0.8.8](https://github.com/xmldom/xmldom/compare/0.8.7...0.8.8)
353
+
354
+ ### Fixed
355
+
356
+ - extend list of HTML entities [`#489`](https://github.com/xmldom/xmldom/pull/489)
357
+
358
+ Thank you, [@zorkow](https://github.com/zorkow), for your contributions
359
+
360
+ ## [0.7.11](https://github.com/xmldom/xmldom/compare/0.7.10...0.7.11)
361
+
362
+ ### Fixed
363
+
364
+ - extend list of HTML entities [`#489`](https://github.com/xmldom/xmldom/pull/489)
365
+
366
+ Thank you, [@zorkow](https://github.com/zorkow), for your contributions
367
+
368
+
369
+ ## [0.8.7](https://github.com/xmldom/xmldom/compare/0.8.6...0.8.7)
370
+
371
+ ### Fixed
372
+
373
+ - 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)
374
+
375
+ Thank you, [@bulandent](https://github.com/bulandent), for your contributions
376
+
377
+
378
+ ## [0.7.10](https://github.com/xmldom/xmldom/compare/0.7.9...0.7.10)
379
+
380
+ ### Fixed
381
+
382
+ - 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)
383
+
384
+ Thank you, [@bulandent](https://github.com/bulandent), for your contributions
385
+
386
+
387
+ ## [0.8.6](https://github.com/xmldom/xmldom/compare/0.8.5...0.8.6)
388
+
389
+ ### Fixed
390
+
391
+ - 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)
392
+
393
+ Thank you, [@edemaine](https://github.com/edemaine), [@pedro-l9](https://github.com/pedro-l9), for your contributions
394
+
395
+
396
+ ## [0.7.9](https://github.com/xmldom/xmldom/compare/0.7.8...0.7.9)
397
+
398
+ ### Fixed
399
+
400
+ - 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)
401
+
402
+ Thank you, [@edemaine](https://github.com/edemaine), [@pedro-l9](https://github.com/pedro-l9), for your contributions
403
+
404
+
405
+ ## [0.9.0-beta.6](https://github.com/xmldom/xmldom/compare/0.9.0-beta.5...0.9.0-beta.6)
406
+
407
+ ### Fixed
408
+
409
+ - 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)
410
+
411
+ Thank you, [@edemaine](https://github.com/edemaine), [@pedro-l9](https://github.com/pedro-l9), for your contributions
412
+
413
+
414
+ ## [0.9.0-beta.5](https://github.com/xmldom/xmldom/compare/0.9.0-beta.4...0.9.0-beta.5)
415
+
416
+ ### Fixed
417
+
418
+ - fix: Restore ES5 compatibility [`#452`](https://github.com/xmldom/xmldom/pull/452) / [`#453`](https://github.com/xmldom/xmldom/issues/453)
419
+
420
+ Thank you, [@fengxinming](https://github.com/fengxinming), for your contributions
421
+
422
+
423
+ ## [0.8.5](https://github.com/xmldom/xmldom/compare/0.8.4...0.8.5)
424
+
425
+ ### Fixed
426
+
427
+ - fix: Restore ES5 compatibility [`#452`](https://github.com/xmldom/xmldom/pull/452) / [`#453`](https://github.com/xmldom/xmldom/issues/453)
428
+
429
+ Thank you, [@fengxinming](https://github.com/fengxinming), for your contributions
430
+
431
+
432
+ ## [0.7.8](https://github.com/xmldom/xmldom/compare/0.7.7...0.7.8)
433
+
434
+ ### Fixed
435
+
436
+ - fix: Restore ES5 compatibility [`#452`](https://github.com/xmldom/xmldom/pull/452) / [`#453`](https://github.com/xmldom/xmldom/issues/453)
437
+
438
+ Thank you, [@fengxinming](https://github.com/fengxinming), for your contributions
439
+
440
+
441
+ ## [0.9.0-beta.4](https://github.com/xmldom/xmldom/compare/0.9.0-beta.3...0.9.0-beta.4)
442
+
443
+ ### Fixed
444
+
445
+ - 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)
446
+ 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.
447
+ In the upcoming version 0.9.0 those text nodes will no longer be added and an error will be thrown instead.
448
+ 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.
449
+ Related Spec: <https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity>
450
+
451
+ ### Chore
452
+
453
+ - update multiple devDependencies
454
+ - Add eslint-plugin-node for `lib` [`#448`](https://github.com/xmldom/xmldom/pull/448) / [`#190`](https://github.com/xmldom/xmldom/issues/190)
455
+ - 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)
456
+
457
+ 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
458
+
459
+
460
+ ## [0.8.4](https://github.com/xmldom/xmldom/compare/0.8.3...0.8.4)
461
+
462
+ ### Fixed
463
+
464
+ - 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)
465
+ 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.
466
+ In the upcoming version 0.9.0 those text nodes will no longer be added and an error will be thrown instead.
467
+ 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.
468
+ Related Spec: <https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity>
469
+
470
+ Thank you, [@frumioj](https://github.com/frumioj), [@cjbarth](https://github.com/cjbarth), [@markgollnick](https://github.com/markgollnick) for your contributions
471
+
472
+
473
+ ## [0.7.7](https://github.com/xmldom/xmldom/compare/0.7.6...0.7.7)
474
+
475
+ ### Fixed
476
+
477
+ - 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)
478
+ 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.
479
+ In the upcoming version 0.9.0 those text nodes will no longer be added and an error will be thrown instead.
480
+ 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.
481
+ Related Spec: <https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity>
482
+
483
+ Thank you, [@frumioj](https://github.com/frumioj), [@cjbarth](https://github.com/cjbarth), [@markgollnick](https://github.com/markgollnick) for your contributions
484
+
485
+
486
+ ## [0.9.0-beta.3](https://github.com/xmldom/xmldom/compare/0.9.0-beta.2...0.9.0-beta.3)
487
+
488
+ ### Fixed
489
+
490
+ - fix: Stop adding tags after incomplete closing tag [`#445`](https://github.com/xmldom/xmldom/pull/445) / [`#416`](https://github.com/xmldom/xmldom/pull/416)
491
+ 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.
492
+ BREAKING CHANGE: If your code relied on not well-formed XML to be parsed and include subsequent tags, this will no longer work.
493
+ - fix: Avoid bidirectional characters in source code [`#440`](https://github.com/xmldom/xmldom/pull/440)
494
+
495
+ ### Other
496
+
497
+ - ci: Add CodeQL scan [`#444`](https://github.com/xmldom/xmldom/pull/444)
498
+
499
+ Thank you, [@ACN-kck](https://github.com/ACN-kck), [@mgerlach](https://github.com/mgerlach) for your contributions
500
+
501
+
502
+ ## [0.7.6](https://github.com/xmldom/xmldom/compare/0.7.5...0.7.6)
503
+
504
+ ### Fixed
505
+ - 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)
506
+
507
+ Thank you, [@jftanner](https://github.com/jftanner), [@Supraja9726](https://github.com/Supraja9726) for your contributions
508
+
509
+
510
+ ## [0.8.3](https://github.com/xmldom/xmldom/compare/0.8.3...0.8.2)
511
+
512
+ ### Fixed
513
+ - Avoid iterating over prototype properties [`#437`](https://github.com/xmldom/xmldom/pull/437) / [`#436`](https://github.com/xmldom/xmldom/issues/436)
514
+
515
+ Thank you, [@Supraja9726](https://github.com/Supraja9726) for your contributions
516
+
517
+
518
+ ## [0.9.0-beta.2](https://github.com/xmldom/xmldom/compare/0.9.0-beta.1...0.9.0-beta.2)
519
+
520
+ ### Fixed
521
+ - Avoid iterating over prototype properties [`#437`](https://github.com/xmldom/xmldom/pull/437) / [`#436`](https://github.com/xmldom/xmldom/issues/436)
522
+
523
+ Thank you, [@Supraja9726](https://github.com/Supraja9726) for your contributions
524
+
525
+
526
+ ## [0.9.0-beta.1](https://github.com/xmldom/xmldom/compare/0.8.2...0.9.0-beta.1)
527
+
528
+ ### Fixed
529
+
530
+ **Only use HTML rules if mimeType matches** [`#338`](https://github.com/xmldom/xmldom/pull/338), fixes [`#203`](https://github.com/xmldom/xmldom/issues/203)
531
+
532
+ In the living specs for parsing XML and HTML, that this library is trying to implement,
533
+ there is a distinction between the different types of documents being parsed:
534
+ There are quite some rules that are different for parsing, constructing and serializing XML vs HTML documents.
535
+
536
+ 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.
537
+
538
+ 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.
539
+
540
+ 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.
541
+
542
+ 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`).
543
+
544
+ BREAKING CHANGE: The following methods no longer allow a (non spec compliant) boolean argument to toggle "HTML rules":
545
+ - `XMLSerializer.serializeToString`
546
+ - `Node.toString`
547
+ - `Document.toString`
548
+
549
+ The following interfaces have been implemented:
550
+ `DOMImplementation` now implements all methods defined in the DOM spec, but not all of the behavior is implemented (see docstring):
551
+ - `createDocument` creates an "XML Document" (prototype: `Document`, property `type` is `'xml'`)
552
+ - `createHTMLDocument` creates an "HTML Document" (type/prototype: `Document`, property `type` is `'html'`).
553
+ - when no argument is passed or the first argument is a string, the basic nodes for an HTML structure are created, as specified
554
+ - when the first argument is `false` no child nodes are created
555
+
556
+ `Document` now has two new readonly properties as specified in the DOM spec:
557
+ - `contentType` which is the mime-type that was used to create the document
558
+ - `type` which is either the string literal `'xml'` or `'html'`
559
+
560
+ `MIME_TYPE` (`/lib/conventions.js`):
561
+ - `hasDefaultHTMLNamespace` test if the provided string is one of the miem types that implies the default HTML namespace: `text/html` or `application/xhtml+xml`
562
+
563
+ Thank you [@weiwu-zhang](https://github.com/weiwu-zhang) for your contributions
564
+
565
+ ### Chore
566
+
567
+ - update multiple devDependencies
568
+
569
+
570
+ ## [0.8.2](https://github.com/xmldom/xmldom/compare/0.8.1...0.8.2)
571
+
572
+ ### Fixed
573
+ - fix(dom): Serialize `&gt;` as specified (#395) [`#58`](https://github.com/xmldom/xmldom/issues/58)
574
+
575
+ ### Other
576
+ - docs: Add `nodeType` values to public interface description [`#396`](https://github.com/xmldom/xmldom/pull/396)
577
+ - test: Add executable examples for node and typescript [`#317`](https://github.com/xmldom/xmldom/pull/317)
578
+ - fix(dom): Serialize `&gt;` as specified [`#395`](https://github.com/xmldom/xmldom/pull/395)
579
+ - chore: Add minimal `Object.assign` ponyfill [`#379`](https://github.com/xmldom/xmldom/pull/379)
580
+ - docs: Refine release documentation [`#378`](https://github.com/xmldom/xmldom/pull/378)
581
+ - chore: update various dev dependencies
582
+
583
+ 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
584
+
585
+ ## [0.8.1](https://github.com/xmldom/xmldom/compare/0.8.0...0.8.1)
586
+
587
+ ### Fixes
588
+ - Only use own properties in entityMap [`#374`](https://github.com/xmldom/xmldom/pull/374)
589
+
590
+ ### Docs
591
+ - Add security policy [`#365`](https://github.com/xmldom/xmldom/pull/365)
592
+ - changelog: Correct contributor name and link [`#366`](https://github.com/xmldom/xmldom/pull/366)
593
+ - Describe release/publish steps [`#358`](https://github.com/xmldom/xmldom/pull/358), [`#376`](https://github.com/xmldom/xmldom/pull/376)
594
+ - Add snyk package health badge [`#360`](https://github.com/xmldom/xmldom/pull/360)
595
+
596
+
597
+ ## [0.8.0](https://github.com/xmldom/xmldom/compare/0.7.5...0.8.0)
598
+
599
+ ### Fixed
600
+ - 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) \
601
+ BREAKING CHANGE: Certain combination of line break characters are normalized to a single `\n` before parsing takes place and will no longer be preserved.
602
+ - [`#303`](https://github.com/xmldom/xmldom/issues/303) / [`#307`](https://github.com/xmldom/xmldom/pull/307)
603
+ - [`#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)
604
+ - XMLSerializer: Preserve whitespace character references [`#284`](https://github.com/xmldom/xmldom/issues/284) / [`#310`](https://github.com/xmldom/xmldom/pull/310) \
605
+ BREAKING CHANGE: If you relied on the not spec compliant preservation of literal `\t`, `\n` or `\r` in **attribute values**.
606
+ To preserve those you will have to create XML that instead contains the correct numerical (or hexadecimal) equivalent (e.g. `&#x9;`, `&#xA;`, `&#xD;`).
607
+ - 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)
608
+ BREAKING CHANGE: Use the one provided by the main package export.
609
+ - dom: Remove all links as part of `removeChild` [`#343`](https://github.com/xmldom/xmldom/issues/343) / [`#355`](https://github.com/xmldom/xmldom/pull/355)
610
+
611
+ ### Chore
612
+ - ci: Restore latest tested node version to 16.x [`#325`](https://github.com/xmldom/xmldom/pull/325)
613
+ - ci: Split test and lint steps into jobs [`#111`](https://github.com/xmldom/xmldom/issues/111) / [`#304`](https://github.com/xmldom/xmldom/pull/304)
614
+ - Pinned and updated devDependencies
615
+
616
+ 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
617
+
618
+ ## 0.7.5
619
+
620
+ [Commits](https://github.com/xmldom/xmldom/compare/0.7.4...0.7.5)
621
+
622
+ ### Fixes:
623
+
624
+ - Preserve default namespace when serializing [`#319`](https://github.com/xmldom/xmldom/issues/319) / [`#321`](https://github.com/xmldom/xmldom/pull/321)
625
+ Thank you, [@lupestro](https://github.com/lupestro)
626
+
627
+ ## 0.7.4
628
+
629
+ [Commits](https://github.com/xmldom/xmldom/compare/0.7.3...0.7.4)
630
+
631
+ ### Fixes:
632
+
633
+ - Restore ability to parse `__prototype__` attributes [`#315`](https://github.com/xmldom/xmldom/pull/315)
634
+ Thank you, [@dsimpsonOMF](https://github.com/dsimpsonOMF)
635
+
636
+ ## 0.7.3
637
+
638
+ [Commits](https://github.com/xmldom/xmldom/compare/0.7.2...0.7.3)
639
+
640
+ ### Fixes:
641
+
642
+ - Add doctype when parsing from string [`#277`](https://github.com/xmldom/xmldom/issues/277) / [`#301`](https://github.com/xmldom/xmldom/pull/301)
643
+ - Correct typo in error message [`#294`](https://github.com/xmldom/xmldom/pull/294)
644
+ Thank you, [@rrthomas](https://github.com/rrthomas)
645
+
646
+ ### Refactor:
647
+
648
+ - Improve exports & require statements, new main package entry [`#233`](https://github.com/xmldom/xmldom/pull/233)
649
+
650
+ ### Docs:
651
+
652
+ - Fix Stryker badge [`#298`](https://github.com/xmldom/xmldom/pull/298)
653
+ - Fix link to help-wanted issues [`#299`](https://github.com/xmldom/xmldom/pull/299)
654
+
655
+ ### Chore:
656
+
657
+ - Execute stryker:dry-run on branches [`#302`](https://github.com/xmldom/xmldom/pull/302)
658
+ - Fix stryker config [`#300`](https://github.com/xmldom/xmldom/pull/300)
659
+ - Split test and lint scripts [`#297`](https://github.com/xmldom/xmldom/pull/297)
660
+ - Switch to stryker dashboard owned by org [`#292`](https://github.com/xmldom/xmldom/pull/292)
661
+
662
+ ## 0.7.2
663
+
664
+ [Commits](https://github.com/xmldom/xmldom/compare/0.7.1...0.7.2)
665
+
666
+ ### Fixes:
667
+
668
+ - Types: Add index.d.ts to packaged files [`#288`](https://github.com/xmldom/xmldom/pull/288)
669
+ Thank you, [@forty](https://github.com/forty)
670
+
671
+ ## 0.7.1
672
+
673
+ [Commits](https://github.com/xmldom/xmldom/compare/0.7.0...0.7.1)
674
+
675
+ ### Fixes:
676
+
677
+ - Types: Copy types from DefinitelyTyped [`#283`](https://github.com/xmldom/xmldom/pull/283)
678
+ Thank you, [@kachkaev](https://github.com/kachkaev)
679
+
680
+ ### Chore:
681
+ - package.json: remove author, maintainers, etc. [`#279`](https://github.com/xmldom/xmldom/pull/279)
682
+
683
+ ## 0.7.0
684
+
685
+ [Commits](https://github.com/xmldom/xmldom/compare/0.6.0...0.7.0)
686
+
687
+ Due to [`#271`](https://github.com/xmldom/xmldom/issue/271) this version was published as
688
+ - 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))
689
+ - scoped `@xmldom/xmldom` package to npm (git tag `0.7.0+scoped`)
690
+ For more details look at [`#278`](https://github.com/xmldom/xmldom/pull/278#issuecomment-902172483)
691
+
692
+ ### Fixes:
693
+
694
+ - Security: Misinterpretation of malicious XML input [`CVE-2021-32796`](https://github.com/xmldom/xmldom/security/advisories/GHSA-5fg8-2547-mr8q)
695
+ - Implement `Document.getElementsByClassName` as specified [`#213`](https://github.com/xmldom/xmldom/pull/213), thank you, [@ChALkeR](https://github.com/ChALkeR)
696
+ - Inherit namespace prefix from parent when required [`#268`](https://github.com/xmldom/xmldom/pull/268)
697
+ - Handle whitespace in closing tags [`#267`](https://github.com/xmldom/xmldom/pull/267)
698
+ - Update `DOMImplementation` according to recent specs [`#210`](https://github.com/xmldom/xmldom/pull/210)
699
+ BREAKING CHANGE: Only if you "passed features to be marked as available as a constructor arguments" and expected it to "magically work".
700
+ - No longer serializes any namespaces with an empty URI [`#244`](https://github.com/xmldom/xmldom/pull/244)
701
+ (related to [`#168`](https://github.com/xmldom/xmldom/pull/168) released in 0.6.0)
702
+ 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
703
+ - Set `localName` as part of `Document.createElement` [`#229`](https://github.com/xmldom/xmldom/pull/229), thank you, [@rrthomas](https://github.com/rrthomas)
704
+
705
+ ### CI
706
+
707
+ - We are now additionally running tests against node v16
708
+ - Stryker tests on the master branch now run against node v14
709
+
710
+ ### Docs
711
+
712
+ - Describe relations with and between specs: [`#211`](https://github.com/xmldom/xmldom/pull/211), [`#247`](https://github.com/xmldom/xmldom/pull/247)
713
+
714
+ ## 0.6.0
715
+
716
+ [Commits](https://github.com/xmldom/xmldom/compare/0.5.0...0.6.0)
717
+
718
+ ### Fixes
719
+
720
+ - Stop serializing empty namespace values like `xmlns:ds=""` [`#168`](https://github.com/xmldom/xmldom/pull/168)
721
+ BREAKING CHANGE: If your code expected empty namespaces attributes to be serialized.
722
+ Thank you, [@pdecat](https://github.com/pdecat) and [@FranckDepoortere](https://github.com/FranckDepoortere)
723
+ - Escape `<` to `&lt;` when serializing attribute values [`#198`](https://github.com/xmldom/xmldom/issues/198) / [`#199`](https://github.com/xmldom/xmldom/pull/199)
724
+
725
+ ## 0.5.0
726
+
727
+ [Commits](https://github.com/xmldom/xmldom/compare/0.4.0...0.5.0)
728
+
729
+ ### Fixes
730
+ - Avoid misinterpretation of malicious XML input - [`GHSA-h6q6-9hqw-rwfv`](https://github.com/xmldom/xmldom/security/advisories/GHSA-h6q6-9hqw-rwfv) (CVE-2021-21366)
731
+ - Improve error reporting; throw on duplicate attribute\
732
+ 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.
733
+ It's possible to configure the `DOMParser.errorHandler` before parsing, to handle those errors differently.
734
+
735
+ To accomplish this and also be able to verify it in tests I needed to
736
+ - create a new `Error` type `ParseError` and export it
737
+ - Throw `ParseError` from `errorHandler.fatalError` and prevent those from being caught in `XMLReader`.
738
+ - export `DOMHandler` constructor as `__DOMHandler`
739
+ - Preserve quotes in DOCTYPE declaration
740
+ 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.
741
+ 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.
742
+ (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.)
743
+
744
+ https://www.w3.org/TR/2006/REC-xml11-20060816/#dtd
745
+ https://www.w3.org/TR/2006/REC-xml11-20060816/#IDAX1KS (External Entity Declaration)
746
+
747
+ - Fix breaking preprocessors' directives when parsing attributes [`#171`](https://github.com/xmldom/xmldom/pull/171)
748
+ - fix(dom): Escape `]]&gt;` when serializing CharData [`#181`](https://github.com/xmldom/xmldom/pull/181)
749
+ - Switch to (only) MIT license (drop problematic LGPL license option) [`#178`](https://github.com/xmldom/xmldom/pull/178)
750
+ - Export DOMException; remove custom assertions; etc. [`#174`](https://github.com/xmldom/xmldom/pull/174)
751
+
752
+ ### Docs
753
+ - Update MDN links in `readme.md` [`#188`](https://github.com/xmldom/xmldom/pull/188)
754
+
755
+ ## 0.4.0
756
+
757
+ [Commits](https://github.com/xmldom/xmldom/compare/0.3.0...0.4.0)
758
+
759
+ ### Fixes
760
+ - **BREAKING** Restore `&nbsp;` behavior from v0.1.27 [`#67`](https://github.com/xmldom/xmldom/pull/67)
761
+ - **BREAKING** Typecheck source param before parsing [`#113`](https://github.com/xmldom/xmldom/pull/113)
762
+ - Include documents in package files list [`#156`](https://github.com/xmldom/xmldom/pull/156)
763
+ - Preserve doctype with sysid [`#144`](https://github.com/xmldom/xmldom/pull/144)
764
+ - Remove ES6 syntax from getElementsByClassName [`#91`](https://github.com/xmldom/xmldom/pull/91)
765
+ - Revert "Add lowercase of åäö in entityMap" due to duplicate entries [`#84`](https://github.com/xmldom/xmldom/pull/84)
766
+ - fix: Convert all line separators to LF [`#66`](https://github.com/xmldom/xmldom/pull/66)
767
+
768
+ ### Docs
769
+ - Update CHANGELOG.md through version 0.3.0 [`#63`](https://github.com/xmldom/xmldom/pull/63)
770
+ - Update badges [`#78`](https://github.com/xmldom/xmldom/pull/78)
771
+ - Add .editorconfig file [`#104`](https://github.com/xmldom/xmldom/pull/104)
772
+ - Add note about import [`#79`](https://github.com/xmldom/xmldom/pull/79)
773
+ - Modernize & improve the example in readme.md [`#81`](https://github.com/xmldom/xmldom/pull/81)
774
+
775
+ ### CI
776
+ - Add Stryker Mutator [`#70`](https://github.com/xmldom/xmldom/pull/70)
777
+ - Add Stryker action to update dashboard [`#77`](https://github.com/xmldom/xmldom/pull/77)
778
+ - Add Node GitHub action workflow [`#64`](https://github.com/xmldom/xmldom/pull/64)
779
+ - add & enable eslint [`#106`](https://github.com/xmldom/xmldom/pull/106)
780
+ - Use eslint-plugin-es5 to enforce ES5 syntax [`#107`](https://github.com/xmldom/xmldom/pull/107)
781
+ - Recover `vows` tests, drop `proof` tests [`#59`](https://github.com/xmldom/xmldom/pull/59)
782
+ - Add jest tessuite and first tests [`#114`](https://github.com/xmldom/xmldom/pull/114)
783
+ - Add jest testsuite with `xmltest` cases [`#112`](https://github.com/xmldom/xmldom/pull/112)
784
+ - Configure Renovate [`#108`](https://github.com/xmldom/xmldom/pull/108)
785
+ - Test European HTML entities [`#86`](https://github.com/xmldom/xmldom/pull/86)
786
+ - Updated devDependencies
787
+
788
+ ### Other
789
+ - 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)
790
+
791
+ ## 0.3.0
792
+
793
+ [Commits](https://github.com/xmldom/xmldom/compare/0.2.1...0.3.0)
794
+
795
+ - **BREAKING** Node >=10.x is now required.
796
+ - **BREAKING** Remove `component.json` (deprecated package manager https://github.com/componentjs/guide)
797
+ - **BREAKING** Move existing sources into `lib` subdirectory.
798
+ - **POSSIBLY BREAKING** Introduce `files` entry in `package.json` and remove use of `.npmignore`.
799
+ - [Add `Document.getElementsByClassName`](https://github.com/xmldom/xmldom/issues/24).
800
+ - [Add `Node` to the list of exports](https://github.com/xmldom/xmldom/pull/27)
801
+ - [Add lowercase of åäö in `entityMap`](https://github.com/xmldom/xmldom/pull/23).
802
+ - Move CHANGELOG to markdown file.
803
+ - Move LICENSE to markdown file.
804
+
805
+ ## 0.2.1
806
+
807
+ [Commits](https://github.com/xmldom/xmldom/compare/0.2.0...0.2.1)
808
+
809
+ - Correct `homepage`, `repository` and `bugs` URLs in `package.json`.
810
+
811
+ ## 0.2.0
812
+
813
+ [Commits](https://github.com/xmldom/xmldom/compare/v0.1.27...0.2.0)
814
+
815
+ - Includes all **BREAKING** changes introduced in [`xmldom-alpha@v0.1.28`](#0128) by the original authors.
816
+ - **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) ().
817
+ - **POSSIBLY BREAKING** [remove code that added a `__proto__` property](https://github.com/xmldom/xmldom/commit/366159a76a181ce9a0d83f5dc48205686cfaf9cc)
818
+ - formatting/corrections in `package.json`
819
+
820
+ ## 0.1.31
821
+
822
+ [Commits](https://github.com/xmldom/xmldom/compare/v0.1.27...v0.1.31)
823
+
824
+ The patch versions (`v0.1.29` - `v0.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 [`v0.1.27`](#0127) so they don't include the breaking changes introduced in [`xmldom-alpha@v0.1.28`](#0128)**:
825
+
826
+ ## Maintainer changes
827
+
828
+ 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)
829
+
830
+ The versions listed below have been published to one or both of the following packages:
831
+ - <https://www.npmjs.com/package/xmldom-alpha>
832
+ - <https://www.npmjs.com/package/xmldom>
833
+
834
+ It is currently not planned to continue publishing the `xmldom-alpha` package.
835
+
836
+ 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.
837
+ 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.
838
+
839
+ ## 0.1.28
840
+
841
+ [Commits](https://github.com/xmldom/xmldom/compare/v0.1.27...xmldom-alpha@v0.1.28)
842
+
843
+ Published by @jindw on the 9th of May 2017 as
844
+ - `xmldom-alpha@0.1.28`
845
+
846
+ - **BREAKING** includes [regression regarding `&nbsp;` (issue #57)](https://github.com/xmldom/xmldom/issues/57)
847
+ - [Fix `license` field in `package.json`](https://github.com/jindw/xmldom/pull/178)
848
+ - [Conditional converting of HTML entities](https://github.com/jindw/xmldom/pull/80)
849
+ - 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))
850
+ - Add new module `entities.js`
851
+
852
+ ## 0.1.27
853
+
854
+ Published by @jindw on the 28th of Nov 2016 as
855
+ - `xmldom@0.1.27`
856
+ - `xmldom-alpha@0.1.27`
857
+
858
+ - Various bug fixes.
859
+
860
+ ## 0.1.26
861
+
862
+ Published on the 18th of Nov 2016
863
+ as `xmldom@0.1.26`
864
+
865
+ - Details unknown
866
+
867
+ ## 0.1.25
868
+
869
+ Published on the 18th of Nov 2016 as
870
+ - `xmldom@0.1.25`
871
+
872
+ - Details unknown
873
+
874
+ ## 0.1.24
875
+
876
+ Published on the 27th of November 2016 as
877
+ - `xmldom@0.1.24`
878
+ - `xmldom-alpha@0.1.24`
879
+
880
+ - Added node filter.
881
+
882
+ ## 0.1.23
883
+
884
+ Published on the 5th of May 2016 as
885
+ - `xmldom-alpha@0.1.23`
886
+
887
+ - Add namespace support for nest node serialize.
888
+ - Various other bug fixes.
889
+
890
+ ## 0.1.22
891
+
892
+ - Merge XMLNS serialization.
893
+ - Remove \r from source string.
894
+ - Print namespaces for child elements.
895
+ - Switch references to nodeType to use named constants.
896
+ - Add nodelist toString support.
897
+
898
+ ## 0.1.21
899
+
900
+ - Fix serialize bug.
901
+
902
+ ## 0.1.20
903
+
904
+ - Optimize invalid XML support.
905
+ - Add toString sorter for attributes output.
906
+ - Add html self closed node button.
907
+ - Add `*` NS support for getElementsByTagNameNS.
908
+ - Convert attribute's value to string in setAttributeNS.
909
+ - Add support for HTML entities for HTML docs only.
910
+ - Fix TypeError when Document is created with DocumentType.
911
+
912
+ ## 0.1.19
913
+
914
+ - Fix [infinite loop on unclosed comment (jindw/xmldom#68)](https://github.com/jindw/xmldom/issues/68)
915
+ - Add error report for unclosed tag.
916
+ - Various other fixes.
917
+
918
+ ## 0.1.18
919
+
920
+ - Add default `ns` support.
921
+ - parseFromString now renders entirely plain text documents as textNode.
922
+ - Enable option to ignore white space on parsing.
923
+
924
+ ## 0.1.17
925
+
926
+ **Details missing for this and potential earlier version**
927
+
928
+ ## 0.1.16
929
+
930
+ - Correctly handle multibyte Unicode greater than two byts. #57. #56.
931
+ - Initial unit testing and test coverage. #53. #46. #19.
932
+ - Create Bower `component.json` #52.
933
+
934
+ ## 0.1.8
935
+
936
+ - Add: some test case from node-o3-xml(excludes xpath support)
937
+ - Fix: remove existed attribute before setting (bug introduced in v0.1.5)
938
+ - Fix: index direct access for childNodes and any NodeList collection(not w3c standard)
939
+ - Fix: remove last child bug