html-minifier-next 6.1.3 → 6.1.4
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/dist/htmlminifier.cjs +3 -3
- package/package.json +1 -1
- package/src/htmlparser.js +3 -3
package/dist/htmlminifier.cjs
CHANGED
|
@@ -139,10 +139,10 @@ const singleAttrValues = [
|
|
|
139
139
|
/([^ \t\n\f\r"'`=<>]+)/.source
|
|
140
140
|
];
|
|
141
141
|
// Lenient unquoted value pattern for `continueOnParseError`:
|
|
142
|
-
// allows
|
|
143
|
-
// (
|
|
142
|
+
// allows `<`, `=`, and ``` per HTML error-recovery rules
|
|
143
|
+
// (all are parse errors in unquoted-attribute-value state but appended to the value)
|
|
144
144
|
// `"` and `'` remain excluded—permitting them requires broader test coverage
|
|
145
|
-
const singleAttrValueLenientUnquoted = /([^ \t\n\f\r"'
|
|
145
|
+
const singleAttrValueLenientUnquoted = /([^ \t\n\f\r"'>]+)/.source;
|
|
146
146
|
// https://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-QName
|
|
147
147
|
const qnameCapture = (function () {
|
|
148
148
|
// https://www.npmjs.com/package/ncname
|
package/package.json
CHANGED
package/src/htmlparser.js
CHANGED
|
@@ -36,10 +36,10 @@ const singleAttrValues = [
|
|
|
36
36
|
/([^ \t\n\f\r"'`=<>]+)/.source
|
|
37
37
|
];
|
|
38
38
|
// Lenient unquoted value pattern for `continueOnParseError`:
|
|
39
|
-
// allows
|
|
40
|
-
// (
|
|
39
|
+
// allows `<`, `=`, and ``` per HTML error-recovery rules
|
|
40
|
+
// (all are parse errors in unquoted-attribute-value state but appended to the value)
|
|
41
41
|
// `"` and `'` remain excluded—permitting them requires broader test coverage
|
|
42
|
-
const singleAttrValueLenientUnquoted = /([^ \t\n\f\r"'
|
|
42
|
+
const singleAttrValueLenientUnquoted = /([^ \t\n\f\r"'>]+)/.source;
|
|
43
43
|
// https://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-QName
|
|
44
44
|
const qnameCapture = (function () {
|
|
45
45
|
// https://www.npmjs.com/package/ncname
|