axe-core 4.7.1 → 4.7.2-canary.173f29d
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/README.md +4 -0
- package/axe.js +37 -30
- package/axe.min.js +2 -2
- package/package.json +2 -2
- package/sri-history.json +357 -349
package/README.md
CHANGED
|
@@ -157,6 +157,10 @@ Axe-core has a new minor release every 3 to 5 months, which usually introduces n
|
|
|
157
157
|
- See [release and support](doc/release-and-support.md) for details on the frequency of releases, long-term support and recommendations on upgrading axe-core.
|
|
158
158
|
- See [backward compatibility](doc/backwards-compatibility-doc.md) for details on the types of changes different releases may introduce.
|
|
159
159
|
|
|
160
|
+
## Deque Trademarks Policy
|
|
161
|
+
|
|
162
|
+
DEQUE, DEQUELABS, AXE®, and AXE-CORE® are trademarks of Deque Systems, Inc. Use of the Deque trademarks must be in accordance with [Deque's trademark policy](https://www.deque.com/legal/trademarks/).
|
|
163
|
+
|
|
160
164
|
## Supported ARIA Roles and Attributes.
|
|
161
165
|
|
|
162
166
|
Refer [axe-core ARIA support](./doc/aria-supported.md) for a complete list of ARIA supported roles and attributes by axe.
|
package/axe.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! axe v4.7.
|
|
1
|
+
/*! axe v4.7.2-canary.173f29d
|
|
2
2
|
* Copyright (c) 2023 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(obj);
|
|
23
23
|
}
|
|
24
24
|
var axe = axe || {};
|
|
25
|
-
axe.version = '4.7.
|
|
25
|
+
axe.version = '4.7.2-canary.173f29d';
|
|
26
26
|
if (typeof define === 'function' && define.amd) {
|
|
27
27
|
define('axe-core', [], function() {
|
|
28
28
|
return axe;
|
|
@@ -5162,7 +5162,7 @@
|
|
|
5162
5162
|
return get_rule_default;
|
|
5163
5163
|
},
|
|
5164
5164
|
getScroll: function getScroll() {
|
|
5165
|
-
return
|
|
5165
|
+
return get_scroll_default;
|
|
5166
5166
|
},
|
|
5167
5167
|
getScrollState: function getScrollState() {
|
|
5168
5168
|
return get_scroll_state_default;
|
|
@@ -6130,14 +6130,20 @@
|
|
|
6130
6130
|
if (!window.Node) {
|
|
6131
6131
|
return;
|
|
6132
6132
|
}
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
return;
|
|
6133
|
+
if (nodes instanceof window.Node || nodes instanceof abstract_virtual_node_default) {
|
|
6134
|
+
nodes = [ nodes ];
|
|
6135
|
+
} else {
|
|
6136
|
+
nodes = to_array_default(nodes);
|
|
6138
6137
|
}
|
|
6139
|
-
checkResult.relatedNodes =
|
|
6140
|
-
|
|
6138
|
+
checkResult.relatedNodes = [];
|
|
6139
|
+
nodes.forEach(function(node) {
|
|
6140
|
+
if (node instanceof abstract_virtual_node_default) {
|
|
6141
|
+
node = node.actualNode;
|
|
6142
|
+
}
|
|
6143
|
+
if (node instanceof window.Node) {
|
|
6144
|
+
var dqElm = new dq_element_default(node, options);
|
|
6145
|
+
checkResult.relatedNodes.push(dqElm);
|
|
6146
|
+
}
|
|
6141
6147
|
});
|
|
6142
6148
|
}
|
|
6143
6149
|
};
|
|
@@ -7368,7 +7374,7 @@
|
|
|
7368
7374
|
return vNode.getComputedStylePropertyValue('opacity') === '0';
|
|
7369
7375
|
}
|
|
7370
7376
|
function scrollHidden(vNode) {
|
|
7371
|
-
var scroll =
|
|
7377
|
+
var scroll = get_scroll_default(vNode.actualNode);
|
|
7372
7378
|
var elHeight = parseInt(vNode.getComputedStylePropertyValue('height'));
|
|
7373
7379
|
var elWidth = parseInt(vNode.getComputedStylePropertyValue('width'));
|
|
7374
7380
|
return !!scroll && (elHeight === 0 || elWidth === 0);
|
|
@@ -7661,7 +7667,7 @@
|
|
|
7661
7667
|
vNode._stackingOrder = [ createContext(ROOT_ORDER, null) ];
|
|
7662
7668
|
(_rootGrid = rootGrid) !== null && _rootGrid !== void 0 ? _rootGrid : rootGrid = new Grid();
|
|
7663
7669
|
addNodeToGrid(rootGrid, vNode);
|
|
7664
|
-
if (
|
|
7670
|
+
if (get_scroll_default(vNode.actualNode)) {
|
|
7665
7671
|
var subGrid = new Grid(vNode);
|
|
7666
7672
|
vNode._subGrid = subGrid;
|
|
7667
7673
|
}
|
|
@@ -7685,7 +7691,7 @@
|
|
|
7685
7691
|
_vNode._stackingOrder = createStackingOrder(_vNode, parentVNode, nodeIndex++);
|
|
7686
7692
|
var scrollRegionParent = findScrollRegionParent(_vNode, parentVNode);
|
|
7687
7693
|
var grid = scrollRegionParent ? scrollRegionParent._subGrid : rootGrid;
|
|
7688
|
-
if (
|
|
7694
|
+
if (get_scroll_default(_vNode.actualNode)) {
|
|
7689
7695
|
var _subGrid = new Grid(_vNode);
|
|
7690
7696
|
_vNode._subGrid = _subGrid;
|
|
7691
7697
|
}
|
|
@@ -7816,7 +7822,7 @@
|
|
|
7816
7822
|
var scrollRegionParent = null;
|
|
7817
7823
|
var checkedNodes = [ vNode ];
|
|
7818
7824
|
while (parentVNode) {
|
|
7819
|
-
if (
|
|
7825
|
+
if (get_scroll_default(parentVNode.actualNode)) {
|
|
7820
7826
|
scrollRegionParent = parentVNode;
|
|
7821
7827
|
break;
|
|
7822
7828
|
}
|
|
@@ -9299,7 +9305,7 @@
|
|
|
9299
9305
|
slider: {
|
|
9300
9306
|
type: 'widget',
|
|
9301
9307
|
requiredAttrs: [ 'aria-valuenow' ],
|
|
9302
|
-
allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-orientation', 'aria-readonly', 'aria-valuetext' ],
|
|
9308
|
+
allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-orientation', 'aria-readonly', 'aria-required', 'aria-valuetext' ],
|
|
9303
9309
|
superclassRole: [ 'input', 'range' ],
|
|
9304
9310
|
accessibleNameRequired: true,
|
|
9305
9311
|
childrenPresentational: true
|
|
@@ -9337,7 +9343,7 @@
|
|
|
9337
9343
|
switch: {
|
|
9338
9344
|
type: 'widget',
|
|
9339
9345
|
requiredAttrs: [ 'aria-checked' ],
|
|
9340
|
-
allowedAttrs: [ 'aria-readonly' ],
|
|
9346
|
+
allowedAttrs: [ 'aria-readonly', 'aria-required' ],
|
|
9341
9347
|
superclassRole: [ 'checkbox' ],
|
|
9342
9348
|
accessibleNameRequired: true,
|
|
9343
9349
|
nameFromContent: true,
|
|
@@ -9951,7 +9957,7 @@
|
|
|
9951
9957
|
}, {
|
|
9952
9958
|
hasAccessibleName: true
|
|
9953
9959
|
} ],
|
|
9954
|
-
allowedRoles: [ 'button', 'checkbox', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'progressbar', 'radio', 'scrollbar', 'separator', 'slider', 'switch', 'tab', 'treeitem', 'doc-cover' ]
|
|
9960
|
+
allowedRoles: [ 'button', 'checkbox', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'meter', 'option', 'progressbar', 'radio', 'scrollbar', 'separator', 'slider', 'switch', 'tab', 'treeitem', 'doc-cover' ]
|
|
9955
9961
|
},
|
|
9956
9962
|
usemap: {
|
|
9957
9963
|
matches: '[usemap]',
|
|
@@ -15667,7 +15673,7 @@
|
|
|
15667
15673
|
}
|
|
15668
15674
|
var elHeight = parseInt(style.getPropertyValue('height'));
|
|
15669
15675
|
var elWidth = parseInt(style.getPropertyValue('width'));
|
|
15670
|
-
var scroll =
|
|
15676
|
+
var scroll = get_scroll_default(el);
|
|
15671
15677
|
var scrollableWithZeroHeight = scroll && elHeight === 0;
|
|
15672
15678
|
var scrollableWithZeroWidth = scroll && elWidth === 0;
|
|
15673
15679
|
var posAbsoluteOverflowHiddenAndSmall = style.getPropertyValue('position') === 'absolute' && (elHeight < 2 || elWidth < 2) && style.getPropertyValue('overflow') === 'hidden';
|
|
@@ -15722,7 +15728,7 @@
|
|
|
15722
15728
|
var vNode = get_node_from_tree_default(node);
|
|
15723
15729
|
var ancestor = vNode.parent;
|
|
15724
15730
|
while (ancestor) {
|
|
15725
|
-
if (
|
|
15731
|
+
if (get_scroll_default(ancestor.actualNode)) {
|
|
15726
15732
|
return ancestor.actualNode;
|
|
15727
15733
|
}
|
|
15728
15734
|
ancestor = ancestor.parent;
|
|
@@ -16739,7 +16745,7 @@
|
|
|
16739
16745
|
return rule;
|
|
16740
16746
|
}
|
|
16741
16747
|
var get_rule_default = getRule;
|
|
16742
|
-
function
|
|
16748
|
+
function getScroll(elm) {
|
|
16743
16749
|
var buffer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
16744
16750
|
var overflowX = elm.scrollWidth > elm.clientWidth + buffer;
|
|
16745
16751
|
var overflowY = elm.scrollHeight > elm.clientHeight + buffer;
|
|
@@ -16761,9 +16767,10 @@
|
|
|
16761
16767
|
var overflowProp = style.getPropertyValue(prop);
|
|
16762
16768
|
return [ 'scroll', 'auto' ].includes(overflowProp);
|
|
16763
16769
|
}
|
|
16770
|
+
var get_scroll_default = memoize_default(getScroll);
|
|
16764
16771
|
function getElmScrollRecursive(root) {
|
|
16765
16772
|
return Array.from(root.children || root.childNodes || []).reduce(function(scrolls, elm) {
|
|
16766
|
-
var scroll =
|
|
16773
|
+
var scroll = get_scroll_default(elm);
|
|
16767
16774
|
if (scroll) {
|
|
16768
16775
|
scrolls.push(scroll);
|
|
16769
16776
|
}
|
|
@@ -25111,7 +25118,7 @@
|
|
|
25111
25118
|
}
|
|
25112
25119
|
var presentation_role_conflict_matches_default = presentationRoleConflictMatches;
|
|
25113
25120
|
function scrollableRegionFocusableMatches(node, virtualNode) {
|
|
25114
|
-
return
|
|
25121
|
+
return get_scroll_default(node, 13) !== void 0 && _isComboboxPopup(virtualNode) === false && isNoneEmptyElement(virtualNode);
|
|
25115
25122
|
}
|
|
25116
25123
|
function isNoneEmptyElement(vNode) {
|
|
25117
25124
|
return query_selector_all_default(vNode, '*').some(function(elm) {
|
|
@@ -28535,7 +28542,7 @@
|
|
|
28535
28542
|
selector: '[aria-hidden="true"]',
|
|
28536
28543
|
matches: 'aria-hidden-focus-matches',
|
|
28537
28544
|
excludeHidden: false,
|
|
28538
|
-
tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412' ],
|
|
28545
|
+
tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a' ],
|
|
28539
28546
|
actIds: [ '6cfa84' ],
|
|
28540
28547
|
all: [ 'focusable-modal-open', 'focusable-disabled', 'focusable-not-tabbable' ],
|
|
28541
28548
|
any: [],
|
|
@@ -29012,7 +29019,7 @@
|
|
|
29012
29019
|
id: 'frame-title-unique',
|
|
29013
29020
|
selector: 'frame[title], iframe[title]',
|
|
29014
29021
|
matches: 'frame-title-has-text-matches',
|
|
29015
|
-
tags: [ 'cat.text-alternatives', 'wcag412', 'wcag2a', 'TTv5', 'TT12.
|
|
29022
|
+
tags: [ 'cat.text-alternatives', 'wcag412', 'wcag2a', 'TTv5', 'TT12.d' ],
|
|
29016
29023
|
actIds: [ '4b1c6c' ],
|
|
29017
29024
|
all: [],
|
|
29018
29025
|
any: [],
|
|
@@ -29022,7 +29029,7 @@
|
|
|
29022
29029
|
id: 'frame-title',
|
|
29023
29030
|
selector: 'frame, iframe',
|
|
29024
29031
|
matches: 'no-negative-tabindex-matches',
|
|
29025
|
-
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'section508', 'section508.22.i', 'TTv5', 'TT12.
|
|
29032
|
+
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'section508', 'section508.22.i', 'TTv5', 'TT12.d' ],
|
|
29026
29033
|
actIds: [ 'cae760' ],
|
|
29027
29034
|
all: [],
|
|
29028
29035
|
any: [ {
|
|
@@ -29367,7 +29374,7 @@
|
|
|
29367
29374
|
id: 'meta-refresh',
|
|
29368
29375
|
selector: 'meta[http-equiv="refresh"][content]',
|
|
29369
29376
|
excludeHidden: false,
|
|
29370
|
-
tags: [ 'cat.time-and-media', 'wcag2a', 'wcag221', 'TTv5', '
|
|
29377
|
+
tags: [ 'cat.time-and-media', 'wcag2a', 'wcag221', 'TTv5', 'TT8.a' ],
|
|
29371
29378
|
actIds: [ 'bc659a', 'bisz58' ],
|
|
29372
29379
|
all: [],
|
|
29373
29380
|
any: [ {
|
|
@@ -29411,7 +29418,7 @@
|
|
|
29411
29418
|
}, {
|
|
29412
29419
|
id: 'nested-interactive',
|
|
29413
29420
|
matches: 'nested-interactive-matches',
|
|
29414
|
-
tags: [ 'cat.keyboard', 'wcag2a', 'wcag412', 'TTv5', '
|
|
29421
|
+
tags: [ 'cat.keyboard', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a' ],
|
|
29415
29422
|
actIds: [ '307n5z' ],
|
|
29416
29423
|
all: [],
|
|
29417
29424
|
any: [ 'no-focusable-content' ],
|
|
@@ -29537,7 +29544,7 @@
|
|
|
29537
29544
|
id: 'scrollable-region-focusable',
|
|
29538
29545
|
selector: '*:not(select,textarea)',
|
|
29539
29546
|
matches: 'scrollable-region-focusable-matches',
|
|
29540
|
-
tags: [ 'cat.keyboard', 'wcag2a', 'wcag211' ],
|
|
29547
|
+
tags: [ 'cat.keyboard', 'wcag2a', 'wcag211', 'TTv5', 'TT4.a' ],
|
|
29541
29548
|
actIds: [ '0ssw9k' ],
|
|
29542
29549
|
all: [],
|
|
29543
29550
|
any: [ 'focusable-content', 'focusable-element' ],
|
|
@@ -29558,7 +29565,7 @@
|
|
|
29558
29565
|
}, {
|
|
29559
29566
|
id: 'server-side-image-map',
|
|
29560
29567
|
selector: 'img[ismap]',
|
|
29561
|
-
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag211', 'section508', 'section508.22.f' ],
|
|
29568
|
+
tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag211', 'section508', 'section508.22.f', 'TTv5', 'TT4.a' ],
|
|
29562
29569
|
all: [],
|
|
29563
29570
|
any: [],
|
|
29564
29571
|
none: [ 'exists' ]
|
|
@@ -29637,7 +29644,7 @@
|
|
|
29637
29644
|
id: 'td-headers-attr',
|
|
29638
29645
|
selector: 'table',
|
|
29639
29646
|
matches: 'table-or-grid-role-matches',
|
|
29640
|
-
tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g' ],
|
|
29647
|
+
tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b' ],
|
|
29641
29648
|
actIds: [ 'a25f45' ],
|
|
29642
29649
|
all: [ 'td-headers-attr' ],
|
|
29643
29650
|
any: [],
|