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/es/core.js CHANGED
@@ -6020,6 +6020,9 @@ class ElementName extends Rule {
6020
6020
  }
6021
6021
  }
6022
6022
 
6023
+ function isNativeTemplate(node) {
6024
+ return Boolean(node.tagName === "template" && node.meta?.scriptSupporting);
6025
+ }
6023
6026
  function getTransparentChildren(node, transparent) {
6024
6027
  if (typeof transparent === "boolean") {
6025
6028
  return node.childElements;
@@ -6093,7 +6096,7 @@ class ElementPermittedContent extends Rule {
6093
6096
  return false;
6094
6097
  }
6095
6098
  validatePermittedDescendant(node, parent) {
6096
- for (let cur = parent; cur && !cur.isRootElement() && cur.tagName !== "template"; cur = /* istanbul ignore next */
6099
+ for (let cur = parent; cur && !cur.isRootElement() && !isNativeTemplate(cur); cur = /* istanbul ignore next */
6097
6100
  cur.parent ?? null) {
6098
6101
  const meta = cur.meta;
6099
6102
  if (!meta) {
@@ -11720,7 +11723,7 @@ class EventHandler {
11720
11723
  }
11721
11724
 
11722
11725
  const name = "html-validate";
11723
- const version = "9.6.0";
11726
+ const version = "9.6.1";
11724
11727
  const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
11725
11728
 
11726
11729
  function freeze(src) {