axe-core 4.10.3-canary.491f4ec → 4.10.3-canary.5b6a65a
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 +31 -34
- package/axe.min.js +2 -2
- package/locales/_template.json +3 -3
- package/locales/ja.json +122 -113
- package/locales/pt_PT.json +1123 -0
- package/package.json +6 -6
- package/sri-history.json +3 -3
package/axe.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! axe v4.10.3-canary.
|
|
1
|
+
/*! axe v4.10.3-canary.5b6a65a
|
|
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.3-canary.
|
|
25
|
+
axe.version = '4.10.3-canary.5b6a65a';
|
|
26
26
|
if (typeof define === 'function' && define.amd) {
|
|
27
27
|
define('axe-core', [], function() {
|
|
28
28
|
return axe;
|
|
@@ -149,9 +149,9 @@
|
|
|
149
149
|
}
|
|
150
150
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
151
151
|
if (Object.getOwnPropertySymbols) {
|
|
152
|
-
var
|
|
153
|
-
for (r = 0; r <
|
|
154
|
-
o =
|
|
152
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
153
|
+
for (r = 0; r < n.length; r++) {
|
|
154
|
+
o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
return i;
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
var t = {};
|
|
164
164
|
for (var n in r) {
|
|
165
165
|
if ({}.hasOwnProperty.call(r, n)) {
|
|
166
|
-
if (e.
|
|
166
|
+
if (-1 !== e.indexOf(n)) {
|
|
167
167
|
continue;
|
|
168
168
|
}
|
|
169
169
|
t[n] = r[n];
|
|
@@ -7762,9 +7762,9 @@
|
|
|
7762
7762
|
return truncate(source || '');
|
|
7763
7763
|
}
|
|
7764
7764
|
var DqElement = memoize_default(function DqElement2(elm, options, spec) {
|
|
7765
|
-
var
|
|
7766
|
-
|
|
7767
|
-
|
|
7765
|
+
var _this$spec$selector, _this$_virtualNode;
|
|
7766
|
+
options !== null && options !== void 0 ? options : options = null;
|
|
7767
|
+
spec !== null && spec !== void 0 ? spec : spec = {};
|
|
7768
7768
|
if (!options) {
|
|
7769
7769
|
var _cache_default$get;
|
|
7770
7770
|
options = (_cache_default$get = cache_default.get(CACHE_KEY)) !== null && _cache_default$get !== void 0 ? _cache_default$get : {};
|
|
@@ -9679,14 +9679,13 @@
|
|
|
9679
9679
|
}
|
|
9680
9680
|
cache_default.set('gridCreated', true);
|
|
9681
9681
|
if (!parentVNode) {
|
|
9682
|
-
var _rootGrid;
|
|
9683
9682
|
var vNode = get_node_from_tree_default(document.documentElement);
|
|
9684
9683
|
if (!vNode) {
|
|
9685
9684
|
vNode = new virtual_node_default(document.documentElement);
|
|
9686
9685
|
}
|
|
9687
9686
|
nodeIndex = 0;
|
|
9688
9687
|
vNode._stackingOrder = [ createStackingContext(ROOT_LEVEL, nodeIndex++, null) ];
|
|
9689
|
-
|
|
9688
|
+
rootGrid !== null && rootGrid !== void 0 ? rootGrid : rootGrid = new Grid();
|
|
9690
9689
|
addNodeToGrid(rootGrid, vNode);
|
|
9691
9690
|
if (get_scroll_default(vNode.actualNode)) {
|
|
9692
9691
|
var subGrid = new Grid(vNode);
|
|
@@ -16562,7 +16561,7 @@
|
|
|
16562
16561
|
c12 = _colorRange$rangeArgs[0];
|
|
16563
16562
|
c22 = _colorRange$rangeArgs[1];
|
|
16564
16563
|
}
|
|
16565
|
-
var
|
|
16564
|
+
var _options = options, maxDeltaE = _options.maxDeltaE, deltaEMethod = _options.deltaEMethod, _options$steps = _options.steps, steps2 = _options$steps === void 0 ? 2 : _options$steps, _options$maxSteps = _options.maxSteps, maxSteps = _options$maxSteps === void 0 ? 1e3 : _options$maxSteps, rangeOptions = _objectWithoutProperties(_options, _excluded13);
|
|
16566
16565
|
if (!colorRange) {
|
|
16567
16566
|
var _ref59 = [ getColor(c12), getColor(c22) ];
|
|
16568
16567
|
c12 = _ref59[0];
|
|
@@ -18776,13 +18775,13 @@
|
|
|
18776
18775
|
});
|
|
18777
18776
|
}
|
|
18778
18777
|
function Context(spec, flatTree) {
|
|
18779
|
-
var _spec2, _spec3, _spec4,
|
|
18778
|
+
var _spec, _spec2, _spec3, _spec4, _this5 = this;
|
|
18780
18779
|
spec = _clone(spec);
|
|
18781
18780
|
this.frames = [];
|
|
18782
|
-
this.page = typeof ((
|
|
18783
|
-
this.initiator = typeof ((
|
|
18784
|
-
this.focusable = typeof ((
|
|
18785
|
-
this.size = _typeof((
|
|
18781
|
+
this.page = typeof ((_spec = spec) === null || _spec === void 0 ? void 0 : _spec.page) === 'boolean' ? spec.page : void 0;
|
|
18782
|
+
this.initiator = typeof ((_spec2 = spec) === null || _spec2 === void 0 ? void 0 : _spec2.initiator) === 'boolean' ? spec.initiator : true;
|
|
18783
|
+
this.focusable = typeof ((_spec3 = spec) === null || _spec3 === void 0 ? void 0 : _spec3.focusable) === 'boolean' ? spec.focusable : true;
|
|
18784
|
+
this.size = _typeof((_spec4 = spec) === null || _spec4 === void 0 ? void 0 : _spec4.size) === 'object' ? spec.size : {};
|
|
18786
18785
|
spec = normalizeContext(spec);
|
|
18787
18786
|
this.flatTree = flatTree !== null && flatTree !== void 0 ? flatTree : _getFlattenedTree(getRootNode2(spec));
|
|
18788
18787
|
this.exclude = spec.exclude;
|
|
@@ -22618,10 +22617,9 @@
|
|
|
22618
22617
|
}
|
|
22619
22618
|
var is_accessible_ref_default = isAccessibleRef;
|
|
22620
22619
|
function _isComboboxPopup(virtualNode) {
|
|
22621
|
-
var _popupRoles;
|
|
22622
22620
|
var _ref93 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref93.popupRoles;
|
|
22623
22621
|
var role = get_role_default(virtualNode);
|
|
22624
|
-
|
|
22622
|
+
popupRoles !== null && popupRoles !== void 0 ? popupRoles : popupRoles = aria_attrs_default['aria-haspopup'].values;
|
|
22625
22623
|
if (!popupRoles.includes(role)) {
|
|
22626
22624
|
return false;
|
|
22627
22625
|
}
|
|
@@ -23858,14 +23856,13 @@
|
|
|
23858
23856
|
return .185 / (relativeBlur + .4);
|
|
23859
23857
|
}
|
|
23860
23858
|
function _getStackingContext(elm, elmStack) {
|
|
23861
|
-
var _elmStack;
|
|
23862
23859
|
var virtualNode = get_node_from_tree_default(elm);
|
|
23863
23860
|
if (virtualNode._stackingContext) {
|
|
23864
23861
|
return virtualNode._stackingContext;
|
|
23865
23862
|
}
|
|
23866
23863
|
var stackingContext = [];
|
|
23867
23864
|
var contextMap = new Map();
|
|
23868
|
-
elmStack =
|
|
23865
|
+
elmStack = elmStack !== null && elmStack !== void 0 ? elmStack : _getBackgroundStack(elm);
|
|
23869
23866
|
elmStack.forEach(function(bgElm) {
|
|
23870
23867
|
var _stackingOrder2;
|
|
23871
23868
|
var bgVNode = get_node_from_tree_default(bgElm);
|
|
@@ -24072,7 +24069,6 @@
|
|
|
24072
24069
|
}
|
|
24073
24070
|
var get_contrast_default = getContrast;
|
|
24074
24071
|
function _getForegroundColor(node, _, bgColor) {
|
|
24075
|
-
var _bgColor;
|
|
24076
24072
|
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
24077
24073
|
var nodeStyle = window.getComputedStyle(node);
|
|
24078
24074
|
var colorStack = [ function() {
|
|
@@ -24099,7 +24095,7 @@
|
|
|
24099
24095
|
var fgColor = fgColors.reduce(function(source, backdrop) {
|
|
24100
24096
|
return _flattenColors(source, backdrop);
|
|
24101
24097
|
});
|
|
24102
|
-
|
|
24098
|
+
bgColor !== null && bgColor !== void 0 ? bgColor : bgColor = _getBackgroundColor2(node, []);
|
|
24103
24099
|
if (bgColor === null) {
|
|
24104
24100
|
var reason = incomplete_data_default.get('bgColor');
|
|
24105
24101
|
incomplete_data_default.set('fgColor', reason);
|
|
@@ -26635,7 +26631,8 @@
|
|
|
26635
26631
|
var elementsAllowedAriaLabel = (options === null || options === void 0 ? void 0 : options.elementsAllowedAriaLabel) || [];
|
|
26636
26632
|
var nodeName2 = virtualNode.props.nodeName;
|
|
26637
26633
|
var role = get_role_default(virtualNode, {
|
|
26638
|
-
chromium: true
|
|
26634
|
+
chromium: true,
|
|
26635
|
+
fallback: true
|
|
26639
26636
|
});
|
|
26640
26637
|
var prohibitedList = listProhibitedAttrs(virtualNode, role, nodeName2, elementsAllowedAriaLabel);
|
|
26641
26638
|
var prohibited = prohibitedList.filter(function(attrName) {
|
|
@@ -26647,7 +26644,7 @@
|
|
|
26647
26644
|
if (prohibited.length === 0) {
|
|
26648
26645
|
return false;
|
|
26649
26646
|
}
|
|
26650
|
-
var messageKey =
|
|
26647
|
+
var messageKey = role !== null ? 'hasRole' : 'noRole';
|
|
26651
26648
|
messageKey += prohibited.length > 1 ? 'Plural' : 'Singular';
|
|
26652
26649
|
this.data({
|
|
26653
26650
|
role: role,
|
|
@@ -27662,7 +27659,7 @@
|
|
|
27662
27659
|
};
|
|
27663
27660
|
Check.prototype.runSync = function runSync(node, options, context) {
|
|
27664
27661
|
options = options || {};
|
|
27665
|
-
var
|
|
27662
|
+
var _options2 = options, _options2$enabled = _options2.enabled, enabled = _options2$enabled === void 0 ? this.enabled : _options2$enabled;
|
|
27666
27663
|
if (!enabled) {
|
|
27667
27664
|
return null;
|
|
27668
27665
|
}
|
|
@@ -29079,7 +29076,7 @@
|
|
|
29079
29076
|
callback = options;
|
|
29080
29077
|
options = {};
|
|
29081
29078
|
}
|
|
29082
|
-
var
|
|
29079
|
+
var _options3 = options, environmentData = _options3.environmentData, toolOptions = _objectWithoutProperties(_options3, _excluded15);
|
|
29083
29080
|
callback(_extends({}, _getEnvironmentData(environmentData), {
|
|
29084
29081
|
toolOptions: toolOptions
|
|
29085
29082
|
}, processAggregate(results, options)));
|
|
@@ -29090,7 +29087,7 @@
|
|
|
29090
29087
|
callback = options;
|
|
29091
29088
|
options = {};
|
|
29092
29089
|
}
|
|
29093
|
-
var
|
|
29090
|
+
var _options4 = options, environmentData = _options4.environmentData, toolOptions = _objectWithoutProperties(_options4, _excluded16);
|
|
29094
29091
|
options.resultTypes = [ 'violations' ];
|
|
29095
29092
|
var _processAggregate = processAggregate(results, options), violations = _processAggregate.violations;
|
|
29096
29093
|
callback(_extends({}, _getEnvironmentData(environmentData), {
|
|
@@ -29124,7 +29121,7 @@
|
|
|
29124
29121
|
callback = options;
|
|
29125
29122
|
options = {};
|
|
29126
29123
|
}
|
|
29127
|
-
var
|
|
29124
|
+
var _options5 = options, environmentData = _options5.environmentData, toolOptions = _objectWithoutProperties(_options5, _excluded17);
|
|
29128
29125
|
raw_default(results, toolOptions, function(raw) {
|
|
29129
29126
|
var env = _getEnvironmentData(environmentData);
|
|
29130
29127
|
callback({
|
|
@@ -29139,7 +29136,7 @@
|
|
|
29139
29136
|
callback = options;
|
|
29140
29137
|
options = {};
|
|
29141
29138
|
}
|
|
29142
|
-
var
|
|
29139
|
+
var _options6 = options, environmentData = _options6.environmentData, toolOptions = _objectWithoutProperties(_options6, _excluded18);
|
|
29143
29140
|
var out = processAggregate(results, options);
|
|
29144
29141
|
var addFailureSummaries = function addFailureSummaries(result) {
|
|
29145
29142
|
result.nodes.forEach(function(nodeResult) {
|
|
@@ -29158,7 +29155,7 @@
|
|
|
29158
29155
|
callback = options;
|
|
29159
29156
|
options = {};
|
|
29160
29157
|
}
|
|
29161
|
-
var
|
|
29158
|
+
var _options7 = options, environmentData = _options7.environmentData, toolOptions = _objectWithoutProperties(_options7, _excluded19);
|
|
29162
29159
|
var out = processAggregate(results, options);
|
|
29163
29160
|
callback(_extends({}, _getEnvironmentData(environmentData), {
|
|
29164
29161
|
toolOptions: toolOptions
|
|
@@ -29447,7 +29444,7 @@
|
|
|
29447
29444
|
help: 'Heading levels should only increase by one'
|
|
29448
29445
|
},
|
|
29449
29446
|
'hidden-content': {
|
|
29450
|
-
description: '
|
|
29447
|
+
description: 'Inform users about hidden content.',
|
|
29451
29448
|
help: 'Hidden content on the page should be analyzed'
|
|
29452
29449
|
},
|
|
29453
29450
|
'html-has-lang': {
|
|
@@ -29587,8 +29584,8 @@
|
|
|
29587
29584
|
help: 'Page should contain a level-one heading'
|
|
29588
29585
|
},
|
|
29589
29586
|
'presentation-role-conflict': {
|
|
29590
|
-
description: '
|
|
29591
|
-
help: '
|
|
29587
|
+
description: 'Ensure elements marked as presentational do not have global ARIA or tabindex so that all screen readers ignore them',
|
|
29588
|
+
help: 'Elements marked as presentational should be consistently ignored'
|
|
29592
29589
|
},
|
|
29593
29590
|
region: {
|
|
29594
29591
|
description: 'Ensure all page content is contained by landmarks',
|