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.
@@ -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 `=` and `` ` `` per spec error-recovery rules
143
- // (both are parse errors in unquoted-attribute-value state but appended to the value)
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"'<>]+)/.source;
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
@@ -96,5 +96,5 @@
96
96
  },
97
97
  "type": "module",
98
98
  "types": "./dist/types/htmlminifier.d.ts",
99
- "version": "6.1.3"
99
+ "version": "6.1.4"
100
100
  }
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 `=` and `` ` `` per spec error-recovery rules
40
- // (both are parse errors in unquoted-attribute-value state but appended to the value)
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"'<>]+)/.source;
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