axe-core 4.10.2-canary.f2b535a → 4.10.3-canary.0966dca
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 +25 -10
- package/axe.min.js +2 -2
- package/locales/_template.json +3 -3
- package/locales/ko.json +3 -3
- package/package.json +5 -4
- package/sri-history.json +7 -3
package/axe.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! axe v4.10.
|
|
1
|
+
/*! axe v4.10.3-canary.0966dca
|
|
2
2
|
* Copyright (c) 2015 - 2025 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.10.
|
|
25
|
+
axe.version = '4.10.3-canary.0966dca';
|
|
26
26
|
if (typeof define === 'function' && define.amd) {
|
|
27
27
|
define('axe-core', [], function() {
|
|
28
28
|
return axe;
|
|
@@ -11255,7 +11255,7 @@
|
|
|
11255
11255
|
superclassRole: [ 'composite' ]
|
|
11256
11256
|
},
|
|
11257
11257
|
tabpanel: {
|
|
11258
|
-
type: '
|
|
11258
|
+
type: 'structure',
|
|
11259
11259
|
allowedAttrs: [ 'aria-expanded' ],
|
|
11260
11260
|
superclassRole: [ 'section' ],
|
|
11261
11261
|
accessibleNameRequired: false
|
|
@@ -19507,8 +19507,14 @@
|
|
|
19507
19507
|
}
|
|
19508
19508
|
function preloadMedia(_ref74) {
|
|
19509
19509
|
var _ref74$treeRoot = _ref74.treeRoot, treeRoot = _ref74$treeRoot === void 0 ? axe._tree[0] : _ref74$treeRoot;
|
|
19510
|
-
var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref75) {
|
|
19510
|
+
var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video[autoplay], audio[autoplay]', function(_ref75) {
|
|
19511
19511
|
var actualNode = _ref75.actualNode;
|
|
19512
|
+
if (actualNode.preload === 'none' && actualNode.readyState === 0 && actualNode.networkState !== actualNode.NETWORK_LOADING) {
|
|
19513
|
+
return false;
|
|
19514
|
+
}
|
|
19515
|
+
if (actualNode.hasAttribute('paused') || actualNode.hasAttribute('muted')) {
|
|
19516
|
+
return false;
|
|
19517
|
+
}
|
|
19512
19518
|
if (actualNode.hasAttribute('src')) {
|
|
19513
19519
|
return !!actualNode.getAttribute('src');
|
|
19514
19520
|
}
|
|
@@ -24876,16 +24882,20 @@
|
|
|
24876
24882
|
}
|
|
24877
24883
|
var css_orientation_lock_evaluate_default = cssOrientationLockEvaluate;
|
|
24878
24884
|
function noAutoplayAudioEvaluate(node, options) {
|
|
24885
|
+
var hasControls = node.hasAttribute('controls');
|
|
24886
|
+
if (node.hasAttribute('loop')) {
|
|
24887
|
+
return hasControls;
|
|
24888
|
+
}
|
|
24879
24889
|
if (!node.duration) {
|
|
24880
24890
|
console.warn('axe.utils.preloadMedia did not load metadata');
|
|
24881
24891
|
return void 0;
|
|
24882
24892
|
}
|
|
24883
24893
|
var _options$allowedDurat = options.allowedDuration, allowedDuration = _options$allowedDurat === void 0 ? 3 : _options$allowedDurat;
|
|
24884
24894
|
var playableDuration = getPlayableDuration(node);
|
|
24885
|
-
if (playableDuration <= allowedDuration
|
|
24895
|
+
if (playableDuration <= allowedDuration) {
|
|
24886
24896
|
return true;
|
|
24887
24897
|
}
|
|
24888
|
-
if (!
|
|
24898
|
+
if (!hasControls) {
|
|
24889
24899
|
return false;
|
|
24890
24900
|
}
|
|
24891
24901
|
return true;
|
|
@@ -26120,7 +26130,8 @@
|
|
|
26120
26130
|
navigation: true,
|
|
26121
26131
|
region: true,
|
|
26122
26132
|
search: false,
|
|
26123
|
-
status: true
|
|
26133
|
+
status: true,
|
|
26134
|
+
tabpanel: true
|
|
26124
26135
|
};
|
|
26125
26136
|
function validScrollableTagName(node) {
|
|
26126
26137
|
var nodeName2 = node.nodeName.toUpperCase();
|
|
@@ -27345,6 +27356,10 @@
|
|
|
27345
27356
|
if ([ 'textarea', 'input', 'select' ].includes(nodeName2) === false) {
|
|
27346
27357
|
return false;
|
|
27347
27358
|
}
|
|
27359
|
+
var ariaReadonly = virtualNode.attr('aria-readonly') || 'false';
|
|
27360
|
+
if (virtualNode.hasAttr('readonly') || ariaReadonly.toLowerCase() === 'true') {
|
|
27361
|
+
return false;
|
|
27362
|
+
}
|
|
27348
27363
|
var excludedInputTypes = [ 'submit', 'reset', 'button', 'hidden' ];
|
|
27349
27364
|
if (nodeName2 === 'input' && excludedInputTypes.includes(virtualNode.props.type)) {
|
|
27350
27365
|
return false;
|
|
@@ -29432,7 +29447,7 @@
|
|
|
29432
29447
|
help: 'Heading levels should only increase by one'
|
|
29433
29448
|
},
|
|
29434
29449
|
'hidden-content': {
|
|
29435
|
-
description: '
|
|
29450
|
+
description: 'Inform users about hidden content.',
|
|
29436
29451
|
help: 'Hidden content on the page should be analyzed'
|
|
29437
29452
|
},
|
|
29438
29453
|
'html-has-lang': {
|
|
@@ -29572,8 +29587,8 @@
|
|
|
29572
29587
|
help: 'Page should contain a level-one heading'
|
|
29573
29588
|
},
|
|
29574
29589
|
'presentation-role-conflict': {
|
|
29575
|
-
description: '
|
|
29576
|
-
help: '
|
|
29590
|
+
description: 'Ensure elements marked as presentational are consistently ignored',
|
|
29591
|
+
help: 'Elements marked as presentational should not have global ARIA or tabindex to ensure all screen readers ignore them'
|
|
29577
29592
|
},
|
|
29578
29593
|
region: {
|
|
29579
29594
|
description: 'Ensure all page content is contained by landmarks',
|