html-validate 9.6.0 → 9.6.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/dist/cjs/core.js CHANGED
@@ -6029,6 +6029,9 @@ class ElementName extends Rule {
6029
6029
  }
6030
6030
  }
6031
6031
 
6032
+ function isNativeTemplate(node) {
6033
+ return Boolean(node.tagName === "template" && node.meta?.scriptSupporting);
6034
+ }
6032
6035
  function getTransparentChildren(node, transparent) {
6033
6036
  if (typeof transparent === "boolean") {
6034
6037
  return node.childElements;
@@ -6102,7 +6105,7 @@ class ElementPermittedContent extends Rule {
6102
6105
  return false;
6103
6106
  }
6104
6107
  validatePermittedDescendant(node, parent) {
6105
- for (let cur = parent; cur && !cur.isRootElement() && cur.tagName !== "template"; cur = /* istanbul ignore next */
6108
+ for (let cur = parent; cur && !cur.isRootElement() && !isNativeTemplate(cur); cur = /* istanbul ignore next */
6106
6109
  cur.parent ?? null) {
6107
6110
  const meta = cur.meta;
6108
6111
  if (!meta) {
@@ -11729,7 +11732,7 @@ class EventHandler {
11729
11732
  }
11730
11733
 
11731
11734
  const name = "html-validate";
11732
- const version = "9.6.0";
11735
+ const version = "9.6.1";
11733
11736
  const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
11734
11737
 
11735
11738
  function freeze(src) {