@xmldom/xmldom 0.9.0-beta.9 → 0.9.1
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.
- package/CHANGELOG.md +95 -0
- package/index.d.ts +1242 -121
- package/lib/.eslintrc.yml +1 -1
- package/lib/conventions.js +108 -77
- package/lib/dom-parser.js +98 -87
- package/lib/dom.js +1055 -397
- package/lib/entities.js +14 -9
- package/lib/errors.js +202 -0
- package/lib/grammar.js +21 -3
- package/lib/index.js +23 -3
- package/lib/sax.js +157 -115
- package/package.json +73 -70
- package/readme.md +11 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,101 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [0.9.1](https://github.com/xmldom/xmldom/compare/0.9.0...0.9.1)
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- DOMParser.parseFromString requires mimeType as second argument [`#713`](https://github.com/xmldom/xmldom/pull/713)
|
|
12
|
+
- correct spelling of `isHTMLMimeType` in type definition [`#715`](https://github.com/xmldom/xmldom/pull/715) / [`#712`](https://github.com/xmldom/xmldom/issues/712)
|
|
13
|
+
- 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)
|
|
14
|
+
|
|
15
|
+
### Other
|
|
16
|
+
|
|
17
|
+
- minimum tested node version is 14 [`#710`](https://github.com/xmldom/xmldom/pull/710)
|
|
18
|
+
|
|
19
|
+
Thank you, [@krystofwoldrich](https://github.com/krystofwoldrich), [@marvinruder](https://github.com/marvinruder),
|
|
20
|
+
[@amacneil](https://github.com/amacneil), [@defunctzombie](https://github.com/defunctzombie),
|
|
21
|
+
[@tjhorner](https://github.com/tjhorner), [@danon](https://github.com/danon), for your contributions
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## [0.9.0](https://github.com/xmldom/xmldom/compare/0.9.0-beta.11...0.9.0)
|
|
25
|
+
|
|
26
|
+
- [Discussion](https://github.com/xmldom/xmldom/discussions/435)
|
|
27
|
+
- [Summary on dev.to](https://dev.to/karfau/release-090-of-xmldomxmldom-4106)
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
- feat: expose all DOM level 2 element prototypes [`#637`](https://github.com/xmldom/xmldom/pull/637) / [`#40`](https://github.com/xmldom/xmldom/issues/40)
|
|
32
|
+
- feat: add iterator function to NodeList and NamedNodeMap [`#634`](https://github.com/xmldom/xmldom/pull/634) / [`#633`](https://github.com/xmldom/xmldom/issues/633)
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
|
|
36
|
+
- parse empty/whitspace only doctype internal subset [`#692`](https://github.com/xmldom/xmldom/pull/692)
|
|
37
|
+
- avoid prototype clash in namespace prefix [`#554`](https://github.com/xmldom/xmldom/pull/554)
|
|
38
|
+
- report fatalError when doctype is inside elements [`#550`](https://github.com/xmldom/xmldom/pull/550)
|
|
39
|
+
|
|
40
|
+
### Other
|
|
41
|
+
|
|
42
|
+
- test: add fuzz target and regression tests [`#556`](https://github.com/xmldom/xmldom/pull/556)
|
|
43
|
+
- chore: improve .gitignore and provide .envrc.template [`#697`](https://github.com/xmldom/xmldom/pull/697)
|
|
44
|
+
- chore: Apply security best practices [`#546`](https://github.com/xmldom/xmldom/pull/546)
|
|
45
|
+
- ci: check test coverage in PRs [`#524`](https://github.com/xmldom/xmldom/pull/524)
|
|
46
|
+
- docs: add missing commas to readme [`#566`](https://github.com/xmldom/xmldom/pull/566)
|
|
47
|
+
- docs: click to copy install command in readme [`#644`](https://github.com/xmldom/xmldom/pull/644)
|
|
48
|
+
- docs: enhance jsdoc comments [`#511`](https://github.com/xmldom/xmldom/pull/511)
|
|
49
|
+
|
|
50
|
+
Thank you, [@kboshold](https://github.com/kboshold), [@edi9999](https://github.com/edi9999), [@apupier](https://github.com/apupier),
|
|
51
|
+
[@shunkica](https://github.com/shunkica), [@homer0](https://github.com/homer0), [@jhauga](https://github.com/jhauga),
|
|
52
|
+
[@UdayKharatmol](https://github.com/UdayKharatmol), for your contributions
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## [0.9.0-beta.11](https://github.com/xmldom/xmldom/compare/0.9.0-beta.10...0.9.0-beta.11)
|
|
56
|
+
|
|
57
|
+
### Fixed
|
|
58
|
+
|
|
59
|
+
- 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)
|
|
60
|
+
BREAKING-CHANGE: Reports more not well-formed documents as fatalError
|
|
61
|
+
and drop broken support for optional and unclosed tags in HTML.
|
|
62
|
+
|
|
63
|
+
### Other
|
|
64
|
+
|
|
65
|
+
- Translate/drop non English comments [`#518`](https://github.com/xmldom/xmldom/pull/518)
|
|
66
|
+
- use node v16 for development [`#517`](https://github.com/xmldom/xmldom/pull/517)
|
|
67
|
+
|
|
68
|
+
Thank you, [@brodybits](https://github.com/brodybits), [@cbettinger](https://github.com/cbettinger), [@josecarlosrx](https://github.com/josecarlosrx), for your contributions
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## [0.9.0-beta.10](https://github.com/xmldom/xmldom/compare/0.9.0-beta.9...0.9.0-beta.10)
|
|
72
|
+
|
|
73
|
+
### Fixed
|
|
74
|
+
|
|
75
|
+
- dom: prevent iteration over deleted items [`#514`](https://github.com/xmldom/xmldom/pull/514)/ [`#499`](https://github.com/xmldom/xmldom/issues/499)
|
|
76
|
+
|
|
77
|
+
### Chore
|
|
78
|
+
|
|
79
|
+
- use prettier plugin for jsdoc [`#513`](https://github.com/xmldom/xmldom/pull/513)
|
|
80
|
+
|
|
81
|
+
Thank you, [@qtow](https://github.com/qtow), [@shunkica](https://github.com/shunkica), [@homer0](https://github.com/homer0), for your contributions
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## [0.8.10](https://github.com/xmldom/xmldom/compare/0.8.9...0.8.10)
|
|
85
|
+
|
|
86
|
+
### Fixed
|
|
87
|
+
|
|
88
|
+
- dom: prevent iteration over deleted items [`#514`](https://github.com/xmldom/xmldom/pull/514)/ [`#499`](https://github.com/xmldom/xmldom/issues/499)
|
|
89
|
+
|
|
90
|
+
Thank you, [@qtow](https://github.com/qtow), for your contributions
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
## [0.7.13](https://github.com/xmldom/xmldom/compare/0.7.12...0.7.13)
|
|
94
|
+
|
|
95
|
+
### Fixed
|
|
96
|
+
|
|
97
|
+
- dom: prevent iteration over deleted items [`#514`](https://github.com/xmldom/xmldom/pull/514)/ [`#499`](https://github.com/xmldom/xmldom/issues/499)
|
|
98
|
+
|
|
99
|
+
Thank you, [@qtow](https://github.com/qtow), for your contributions
|
|
100
|
+
|
|
101
|
+
|
|
7
102
|
## [0.9.0-beta.9](https://github.com/xmldom/xmldom/compare/0.9.0-beta.8...0.9.0-beta.9)
|
|
8
103
|
|
|
9
104
|
### Fixed
|