axe-core 4.6.2-canary.90dca3d → 4.6.2-canary.9486288
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 +19 -11
- package/axe.min.js +2 -2
- package/package.json +1 -1
- package/sri-history.json +3 -3
package/axe.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! axe v4.6.2-canary.
|
|
1
|
+
/*! axe v4.6.2-canary.9486288
|
|
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.6.2-canary.
|
|
25
|
+
axe.version = '4.6.2-canary.9486288';
|
|
26
26
|
if (typeof define === 'function' && define.amd) {
|
|
27
27
|
define('axe-core', [], function() {
|
|
28
28
|
return axe;
|
|
@@ -8919,13 +8919,13 @@
|
|
|
8919
8919
|
},
|
|
8920
8920
|
menu: {
|
|
8921
8921
|
type: 'composite',
|
|
8922
|
-
requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu' ],
|
|
8922
|
+
requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu', 'separator' ],
|
|
8923
8923
|
allowedAttrs: [ 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],
|
|
8924
8924
|
superclassRole: [ 'select' ]
|
|
8925
8925
|
},
|
|
8926
8926
|
menubar: {
|
|
8927
8927
|
type: 'composite',
|
|
8928
|
-
requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu' ],
|
|
8928
|
+
requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu', 'separator' ],
|
|
8929
8929
|
allowedAttrs: [ 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],
|
|
8930
8930
|
superclassRole: [ 'menu' ]
|
|
8931
8931
|
},
|
|
@@ -21256,13 +21256,7 @@
|
|
|
21256
21256
|
if (ariaLabelledbyControls.length > 0 && ariaLabelledbyControls.every(is_disabled_default)) {
|
|
21257
21257
|
return false;
|
|
21258
21258
|
}
|
|
21259
|
-
|
|
21260
|
-
var removeUnicodeOptions = {
|
|
21261
|
-
emoji: true,
|
|
21262
|
-
nonBmp: false,
|
|
21263
|
-
punctuations: true
|
|
21264
|
-
};
|
|
21265
|
-
if (!visibleText || !remove_unicode_default(visibleText, removeUnicodeOptions)) {
|
|
21259
|
+
if (!hasRealTextChildren(virtualNode)) {
|
|
21266
21260
|
return false;
|
|
21267
21261
|
}
|
|
21268
21262
|
var range = document.createRange();
|
|
@@ -21282,6 +21276,20 @@
|
|
|
21282
21276
|
return false;
|
|
21283
21277
|
}
|
|
21284
21278
|
var color_contrast_matches_default = colorContrastMatches;
|
|
21279
|
+
var removeUnicodeOptions = {
|
|
21280
|
+
emoji: true,
|
|
21281
|
+
nonBmp: false,
|
|
21282
|
+
punctuations: true
|
|
21283
|
+
};
|
|
21284
|
+
function hasRealTextChildren(virtualNode) {
|
|
21285
|
+
var visibleText = visible_virtual_default(virtualNode, false, true);
|
|
21286
|
+
if (visibleText === '' || remove_unicode_default(visibleText, removeUnicodeOptions) === '') {
|
|
21287
|
+
return false;
|
|
21288
|
+
}
|
|
21289
|
+
return virtualNode.children.some(function(vChild) {
|
|
21290
|
+
return vChild.props.nodeName === '#text' && !is_icon_ligature_default(vChild);
|
|
21291
|
+
});
|
|
21292
|
+
}
|
|
21285
21293
|
function dataTableLargeMatches(node) {
|
|
21286
21294
|
if (is_data_table_default(node)) {
|
|
21287
21295
|
var tableArray = to_grid_default(node);
|