html-validate 8.17.0 → 8.17.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.
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.42.3"
8
+ "packageVersion": "7.43.0"
9
9
  }
10
10
  ]
11
11
  }
package/dist/es/core.js CHANGED
@@ -3435,13 +3435,13 @@ function inAccessibilityTree(node) {
3435
3435
  return true;
3436
3436
  }
3437
3437
  function isAriaHiddenImpl(node) {
3438
- const isHidden = (node2) => {
3438
+ const getAriaHiddenAttr = (node2) => {
3439
3439
  const ariaHidden = node2.getAttribute("aria-hidden");
3440
3440
  return Boolean(ariaHidden && ariaHidden.value === "true");
3441
3441
  };
3442
3442
  return {
3443
3443
  byParent: node.parent ? isAriaHidden(node.parent) : false,
3444
- bySelf: isHidden(node)
3444
+ bySelf: getAriaHiddenAttr(node)
3445
3445
  };
3446
3446
  }
3447
3447
  function isAriaHidden(node, details) {
@@ -3453,13 +3453,13 @@ function isAriaHidden(node, details) {
3453
3453
  return details ? result : result.byParent || result.bySelf;
3454
3454
  }
3455
3455
  function isHTMLHiddenImpl(node) {
3456
- const isHidden = (node2) => {
3456
+ const getHiddenAttr = (node2) => {
3457
3457
  const hidden = node2.getAttribute("hidden");
3458
3458
  return hidden !== null && hidden.isStatic;
3459
3459
  };
3460
3460
  return {
3461
3461
  byParent: node.parent ? isHTMLHidden(node.parent) : false,
3462
- bySelf: isHidden(node)
3462
+ bySelf: getHiddenAttr(node)
3463
3463
  };
3464
3464
  }
3465
3465
  function isHTMLHidden(node, details) {
@@ -3471,13 +3471,13 @@ function isHTMLHidden(node, details) {
3471
3471
  return details ? result : result.byParent || result.bySelf;
3472
3472
  }
3473
3473
  function isInertImpl(node) {
3474
- const isInert2 = (node2) => {
3474
+ const getInertAttr = (node2) => {
3475
3475
  const inert = node2.getAttribute("inert");
3476
3476
  return inert !== null && inert.isStatic;
3477
3477
  };
3478
3478
  return {
3479
- byParent: node.parent ? isInert2(node.parent) : false,
3480
- bySelf: isInert2(node)
3479
+ byParent: node.parent ? isInert(node.parent) : false,
3480
+ bySelf: getInertAttr(node)
3481
3481
  };
3482
3482
  }
3483
3483
  function isInert(node, details) {
@@ -3489,13 +3489,13 @@ function isInert(node, details) {
3489
3489
  return details ? result : result.byParent || result.bySelf;
3490
3490
  }
3491
3491
  function isStyleHiddenImpl(node) {
3492
- const isHidden = (node2) => {
3492
+ const getStyleAttr = (node2) => {
3493
3493
  const style = node2.getAttribute("style");
3494
3494
  const { display, visibility } = parseCssDeclaration(style == null ? void 0 : style.value);
3495
3495
  return display === "none" || visibility === "hidden";
3496
3496
  };
3497
3497
  const byParent = node.parent ? isStyleHidden(node.parent) : false;
3498
- const bySelf = isHidden(node);
3498
+ const bySelf = getStyleAttr(node);
3499
3499
  return byParent || bySelf;
3500
3500
  }
3501
3501
  function isStyleHidden(node) {
@@ -12649,7 +12649,7 @@ class HtmlValidate {
12649
12649
  }
12650
12650
 
12651
12651
  const name = "html-validate";
12652
- const version = "8.17.0";
12652
+ const version = "8.17.1";
12653
12653
  const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
12654
12654
 
12655
12655
  function definePlugin(plugin) {