axe-core 4.10.3-canary.0966dca → 4.10.3-canary.2285969
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 +27 -31
- package/axe.min.js +2 -2
- package/locales/_template.json +2 -2
- package/locales/ja.json +120 -111
- package/package.json +3 -3
- 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.2285969
|
|
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.2285969';
|
|
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);
|
|
@@ -27662,7 +27658,7 @@
|
|
|
27662
27658
|
};
|
|
27663
27659
|
Check.prototype.runSync = function runSync(node, options, context) {
|
|
27664
27660
|
options = options || {};
|
|
27665
|
-
var
|
|
27661
|
+
var _options2 = options, _options2$enabled = _options2.enabled, enabled = _options2$enabled === void 0 ? this.enabled : _options2$enabled;
|
|
27666
27662
|
if (!enabled) {
|
|
27667
27663
|
return null;
|
|
27668
27664
|
}
|
|
@@ -29079,7 +29075,7 @@
|
|
|
29079
29075
|
callback = options;
|
|
29080
29076
|
options = {};
|
|
29081
29077
|
}
|
|
29082
|
-
var
|
|
29078
|
+
var _options3 = options, environmentData = _options3.environmentData, toolOptions = _objectWithoutProperties(_options3, _excluded15);
|
|
29083
29079
|
callback(_extends({}, _getEnvironmentData(environmentData), {
|
|
29084
29080
|
toolOptions: toolOptions
|
|
29085
29081
|
}, processAggregate(results, options)));
|
|
@@ -29090,7 +29086,7 @@
|
|
|
29090
29086
|
callback = options;
|
|
29091
29087
|
options = {};
|
|
29092
29088
|
}
|
|
29093
|
-
var
|
|
29089
|
+
var _options4 = options, environmentData = _options4.environmentData, toolOptions = _objectWithoutProperties(_options4, _excluded16);
|
|
29094
29090
|
options.resultTypes = [ 'violations' ];
|
|
29095
29091
|
var _processAggregate = processAggregate(results, options), violations = _processAggregate.violations;
|
|
29096
29092
|
callback(_extends({}, _getEnvironmentData(environmentData), {
|
|
@@ -29124,7 +29120,7 @@
|
|
|
29124
29120
|
callback = options;
|
|
29125
29121
|
options = {};
|
|
29126
29122
|
}
|
|
29127
|
-
var
|
|
29123
|
+
var _options5 = options, environmentData = _options5.environmentData, toolOptions = _objectWithoutProperties(_options5, _excluded17);
|
|
29128
29124
|
raw_default(results, toolOptions, function(raw) {
|
|
29129
29125
|
var env = _getEnvironmentData(environmentData);
|
|
29130
29126
|
callback({
|
|
@@ -29139,7 +29135,7 @@
|
|
|
29139
29135
|
callback = options;
|
|
29140
29136
|
options = {};
|
|
29141
29137
|
}
|
|
29142
|
-
var
|
|
29138
|
+
var _options6 = options, environmentData = _options6.environmentData, toolOptions = _objectWithoutProperties(_options6, _excluded18);
|
|
29143
29139
|
var out = processAggregate(results, options);
|
|
29144
29140
|
var addFailureSummaries = function addFailureSummaries(result) {
|
|
29145
29141
|
result.nodes.forEach(function(nodeResult) {
|
|
@@ -29158,7 +29154,7 @@
|
|
|
29158
29154
|
callback = options;
|
|
29159
29155
|
options = {};
|
|
29160
29156
|
}
|
|
29161
|
-
var
|
|
29157
|
+
var _options7 = options, environmentData = _options7.environmentData, toolOptions = _objectWithoutProperties(_options7, _excluded19);
|
|
29162
29158
|
var out = processAggregate(results, options);
|
|
29163
29159
|
callback(_extends({}, _getEnvironmentData(environmentData), {
|
|
29164
29160
|
toolOptions: toolOptions
|
|
@@ -29587,8 +29583,8 @@
|
|
|
29587
29583
|
help: 'Page should contain a level-one heading'
|
|
29588
29584
|
},
|
|
29589
29585
|
'presentation-role-conflict': {
|
|
29590
|
-
description: 'Ensure elements marked as presentational
|
|
29591
|
-
help: 'Elements marked as presentational should
|
|
29586
|
+
description: 'Ensure elements marked as presentational do not have global ARIA or tabindex so that all screen readers ignore them',
|
|
29587
|
+
help: 'Elements marked as presentational should be consistently ignored'
|
|
29592
29588
|
},
|
|
29593
29589
|
region: {
|
|
29594
29590
|
description: 'Ensure all page content is contained by landmarks',
|