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.
package/dist/cjs/core.js CHANGED
@@ -3445,13 +3445,13 @@ function inAccessibilityTree(node) {
3445
3445
  return true;
3446
3446
  }
3447
3447
  function isAriaHiddenImpl(node) {
3448
- const isHidden = (node2) => {
3448
+ const getAriaHiddenAttr = (node2) => {
3449
3449
  const ariaHidden = node2.getAttribute("aria-hidden");
3450
3450
  return Boolean(ariaHidden && ariaHidden.value === "true");
3451
3451
  };
3452
3452
  return {
3453
3453
  byParent: node.parent ? isAriaHidden(node.parent) : false,
3454
- bySelf: isHidden(node)
3454
+ bySelf: getAriaHiddenAttr(node)
3455
3455
  };
3456
3456
  }
3457
3457
  function isAriaHidden(node, details) {
@@ -3463,13 +3463,13 @@ function isAriaHidden(node, details) {
3463
3463
  return details ? result : result.byParent || result.bySelf;
3464
3464
  }
3465
3465
  function isHTMLHiddenImpl(node) {
3466
- const isHidden = (node2) => {
3466
+ const getHiddenAttr = (node2) => {
3467
3467
  const hidden = node2.getAttribute("hidden");
3468
3468
  return hidden !== null && hidden.isStatic;
3469
3469
  };
3470
3470
  return {
3471
3471
  byParent: node.parent ? isHTMLHidden(node.parent) : false,
3472
- bySelf: isHidden(node)
3472
+ bySelf: getHiddenAttr(node)
3473
3473
  };
3474
3474
  }
3475
3475
  function isHTMLHidden(node, details) {
@@ -3481,13 +3481,13 @@ function isHTMLHidden(node, details) {
3481
3481
  return details ? result : result.byParent || result.bySelf;
3482
3482
  }
3483
3483
  function isInertImpl(node) {
3484
- const isInert2 = (node2) => {
3484
+ const getInertAttr = (node2) => {
3485
3485
  const inert = node2.getAttribute("inert");
3486
3486
  return inert !== null && inert.isStatic;
3487
3487
  };
3488
3488
  return {
3489
- byParent: node.parent ? isInert2(node.parent) : false,
3490
- bySelf: isInert2(node)
3489
+ byParent: node.parent ? isInert(node.parent) : false,
3490
+ bySelf: getInertAttr(node)
3491
3491
  };
3492
3492
  }
3493
3493
  function isInert(node, details) {
@@ -3499,13 +3499,13 @@ function isInert(node, details) {
3499
3499
  return details ? result : result.byParent || result.bySelf;
3500
3500
  }
3501
3501
  function isStyleHiddenImpl(node) {
3502
- const isHidden = (node2) => {
3502
+ const getStyleAttr = (node2) => {
3503
3503
  const style = node2.getAttribute("style");
3504
3504
  const { display, visibility } = parseCssDeclaration(style == null ? void 0 : style.value);
3505
3505
  return display === "none" || visibility === "hidden";
3506
3506
  };
3507
3507
  const byParent = node.parent ? isStyleHidden(node.parent) : false;
3508
- const bySelf = isHidden(node);
3508
+ const bySelf = getStyleAttr(node);
3509
3509
  return byParent || bySelf;
3510
3510
  }
3511
3511
  function isStyleHidden(node) {
@@ -12659,7 +12659,7 @@ class HtmlValidate {
12659
12659
  }
12660
12660
 
12661
12661
  const name = "html-validate";
12662
- const version = "8.17.0";
12662
+ const version = "8.17.1";
12663
12663
  const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
12664
12664
 
12665
12665
  function definePlugin(plugin) {