html-validate 9.5.3 → 9.5.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/cjs/core.js CHANGED
@@ -6102,7 +6102,7 @@ class ElementPermittedContent extends Rule {
6102
6102
  return false;
6103
6103
  }
6104
6104
  validatePermittedDescendant(node, parent) {
6105
- for (let cur = parent; cur && !cur.isRootElement(); cur = /* istanbul ignore next */
6105
+ for (let cur = parent; cur && !cur.isRootElement() && cur.tagName !== "template"; cur = /* istanbul ignore next */
6106
6106
  cur.parent ?? null) {
6107
6107
  const meta = cur.meta;
6108
6108
  if (!meta) {
@@ -11729,7 +11729,7 @@ class EventHandler {
11729
11729
  }
11730
11730
 
11731
11731
  const name = "html-validate";
11732
- const version = "9.5.3";
11732
+ const version = "9.5.4";
11733
11733
  const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
11734
11734
 
11735
11735
  function freeze(src) {
@@ -13358,7 +13358,7 @@ function requireIgnore () {
13358
13358
  // - ..
13359
13359
  // Valid:
13360
13360
  // - .foo
13361
- const REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/;
13361
+ const REGEX_TEST_INVALID_PATH = /^\.{0,2}\/|^\.{1,2}$/;
13362
13362
 
13363
13363
  const REGEX_TEST_TRAILING_SLASH = /\/$/;
13364
13364