sax 1.4.0 → 1.4.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/LICENSE +2 -2
- package/lib/sax.js +7 -6
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The ISC License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2010-
|
|
3
|
+
Copyright (c) 2010-2024 Isaac Z. Schlueter and Contributors
|
|
4
4
|
|
|
5
5
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
6
|
purpose with or without fee is hereby granted, provided that the above
|
|
@@ -19,7 +19,7 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
19
19
|
`String.fromCodePoint` by Mathias Bynens used according to terms of MIT
|
|
20
20
|
License, as follows:
|
|
21
21
|
|
|
22
|
-
Copyright (c) 2010-
|
|
22
|
+
Copyright (c) 2010-2024 Mathias Bynens <https://mathiasbynens.be/>
|
|
23
23
|
|
|
24
24
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
25
25
|
a copy of this software and associated documentation files (the
|
package/lib/sax.js
CHANGED
|
@@ -1103,12 +1103,11 @@
|
|
|
1103
1103
|
continue;
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
|
-
if (parser.doctype && parser.doctype !== true) {
|
|
1107
|
-
parser.
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
if ((parser.sgmlDecl + c).toUpperCase() === CDATA) {
|
|
1106
|
+
if (parser.doctype && parser.doctype !== true && parser.sgmlDecl) {
|
|
1107
|
+
parser.state = S.DOCTYPE_DTD
|
|
1108
|
+
parser.doctype += '<!' + parser.sgmlDecl + c
|
|
1109
|
+
parser.sgmlDecl = ''
|
|
1110
|
+
} else if ((parser.sgmlDecl + c).toUpperCase() === CDATA) {
|
|
1112
1111
|
emitNode(parser, 'onopencdata')
|
|
1113
1112
|
parser.state = S.CDATA
|
|
1114
1113
|
parser.sgmlDecl = ''
|
|
@@ -1176,6 +1175,8 @@
|
|
|
1176
1175
|
parser.doctype += c
|
|
1177
1176
|
parser.state = S.DOCTYPE_DTD_QUOTED
|
|
1178
1177
|
parser.q = c
|
|
1178
|
+
} else {
|
|
1179
|
+
parser.doctype += c
|
|
1179
1180
|
}
|
|
1180
1181
|
continue
|
|
1181
1182
|
|
package/package.json
CHANGED