html-validate 11.5.5 → 11.5.6

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/cjs/core.js CHANGED
@@ -4521,6 +4521,8 @@ const allowlist = /* @__PURE__ */ new Set([
4521
4521
  "img",
4522
4522
  "summary",
4523
4523
  "table",
4524
+ "ul",
4525
+ "ol",
4524
4526
  "td",
4525
4527
  "th"
4526
4528
  ]);
@@ -12845,7 +12847,7 @@ class EventHandler {
12845
12847
  }
12846
12848
 
12847
12849
  const name = "html-validate";
12848
- const version = "11.5.5";
12850
+ const version = "11.5.6";
12849
12851
  const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
12850
12852
 
12851
12853
  function freeze(src) {
@@ -14816,6 +14818,15 @@ function requireIgnore () {
14816
14818
  : EMPTY
14817
14819
  );
14818
14820
 
14821
+ // > An optional `!` or `^` at the start of a class negates it, so that it
14822
+ // > matches any character not in the set. (gitignore(5), fnmatch(3))
14823
+ // The leading `^` has already been escaped to `\^` by the metacharacter
14824
+ // escaper, so we strip the literal `!` or escaped `^` and emit a single
14825
+ // regex `^` which is the JavaScript negation token.
14826
+ const negateRange = range => range.startsWith('!') || range.startsWith('\\^')
14827
+ ? `^${range.slice(range[0] === '!' ? 1 : 2)}`
14828
+ : range;
14829
+
14819
14830
  // See fixtures #59
14820
14831
  const cleanRangeBackSlash = slashes => {
14821
14832
  const {length} = slashes;
@@ -14920,7 +14931,7 @@ function requireIgnore () {
14920
14931
  // > "**/foo/bar" matches file or directory "bar" anywhere that is directly
14921
14932
  // > under directory "foo".
14922
14933
  // Notice that the '*'s have been replaced as '\\*'
14923
- /^\^*\\\*\\\*\\\//,
14934
+ /^\^*(?:\\\*\\\*\\\/)+/,
14924
14935
 
14925
14936
  // '**/foo' <-> 'foo'
14926
14937
  () => '^(?:.*\\/)?'
@@ -15031,7 +15042,7 @@ function requireIgnore () {
15031
15042
  // A normal case, and it is a range notation
15032
15043
  // '[bar]'
15033
15044
  // '[bar\\\\]'
15034
- ? `[${sanitizeRange(range)}${endEscape}]`
15045
+ ? `[${negateRange(sanitizeRange(range))}${endEscape}]`
15035
15046
  // Invalid range notaton
15036
15047
  // '[bar\\]' -> '[bar\\\\]'
15037
15048
  : '[]'