axe-core 4.11.3 → 4.11.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/axe.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! axe v4.11.3
1
+ /*! axe v4.11.4
2
2
  * Copyright (c) 2015 - 2026 Deque Systems, Inc.
3
3
  *
4
4
  * Your use of this Source Code Form is subject to the terms of the Mozilla Public
@@ -22,7 +22,7 @@
22
22
  }, _typeof(o);
23
23
  }
24
24
  var axe = axe || {};
25
- axe.version = '4.11.3';
25
+ axe.version = '4.11.4';
26
26
  if (typeof define === 'function' && define.amd) {
27
27
  define('axe-core', [], function() {
28
28
  return axe;
@@ -10991,7 +10991,7 @@
10991
10991
  return Array.from(doc.querySelectorAll(selector));
10992
10992
  });
10993
10993
  function generateAncestry(node) {
10994
- var nodeName2 = node.nodeName.toLowerCase();
10994
+ var nodeName2 = escape_selector_default(node.nodeName.toLowerCase());
10995
10995
  var parentElement = node.parentElement;
10996
10996
  var parentNode = node.parentNode;
10997
10997
  var nthChild = '';
@@ -16968,7 +16968,10 @@
16968
16968
  if (!virtualNode) {
16969
16969
  return false;
16970
16970
  }
16971
- if (virtualNode.props.nodeType !== 1 || context.includeHidden) {
16971
+ if (context.includeHidden && !nativelyHidden(virtualNode)) {
16972
+ return false;
16973
+ }
16974
+ if (virtualNode.props.nodeType !== 1) {
16972
16975
  return false;
16973
16976
  }
16974
16977
  return !_isVisibleToScreenReaders(virtualNode);