axe-core 4.3.2 → 4.3.3-canary.5908f0d
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/CHANGELOG.md +29 -0
- package/axe.d.ts +12 -8
- package/axe.js +368 -283
- package/axe.min.js +2 -2
- package/locales/fr.json +210 -39
- package/locales/ko.json +596 -377
- package/package.json +2 -1
- package/sri-history.json +289 -281
package/axe.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! axe v4.3.
|
|
1
|
+
/*! axe v4.3.3-canary.5908f0d
|
|
2
2
|
* Copyright (c) 2021 Deque Systems, Inc.
|
|
3
3
|
*
|
|
4
4
|
* Your use of this Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
return _typeof(obj);
|
|
28
28
|
}
|
|
29
29
|
var axe = axe || {};
|
|
30
|
-
axe.version = '4.3.
|
|
30
|
+
axe.version = '4.3.3-canary.5908f0d';
|
|
31
31
|
if (typeof define === 'function' && define.amd) {
|
|
32
32
|
define('axe-core', [], function() {
|
|
33
33
|
return axe;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
SupportError.prototype = Object.create(Error.prototype);
|
|
55
55
|
SupportError.prototype.constructor = SupportError;
|
|
56
56
|
'use strict';
|
|
57
|
-
var _excluded = [ 'node' ], _excluded2 = [ 'node' ], _excluded3 = [ 'variant' ], _excluded4 = [ 'matches' ], _excluded5 = [ 'chromium' ], _excluded6 = [ 'noImplicit' ], _excluded7 = [ 'noPresentational' ], _excluded8 = [ 'nodes' ], _excluded9 = [ 'node' ], _excluded10 = [ 'relatedNodes' ], _excluded11 = [ 'node' ];
|
|
57
|
+
var _excluded = [ 'node' ], _excluded2 = [ 'node' ], _excluded3 = [ 'variant' ], _excluded4 = [ 'matches' ], _excluded5 = [ 'chromium' ], _excluded6 = [ 'noImplicit' ], _excluded7 = [ 'noPresentational' ], _excluded8 = [ 'nodes' ], _excluded9 = [ 'node' ], _excluded10 = [ 'relatedNodes' ], _excluded11 = [ 'environmentData' ], _excluded12 = [ 'environmentData' ], _excluded13 = [ 'node' ], _excluded14 = [ 'environmentData' ], _excluded15 = [ 'environmentData' ], _excluded16 = [ 'environmentData' ];
|
|
58
58
|
function _defineProperty(obj, key, value) {
|
|
59
59
|
if (key in obj) {
|
|
60
60
|
Object.defineProperty(obj, key, {
|
|
@@ -1393,11 +1393,11 @@
|
|
|
1393
1393
|
} else {
|
|
1394
1394
|
mixin = require_mixin();
|
|
1395
1395
|
generate = function() {
|
|
1396
|
-
var
|
|
1396
|
+
var cache21 = [];
|
|
1397
1397
|
return function(length) {
|
|
1398
1398
|
var args, i = 0;
|
|
1399
|
-
if (
|
|
1400
|
-
return
|
|
1399
|
+
if (cache21[length]) {
|
|
1400
|
+
return cache21[length];
|
|
1401
1401
|
}
|
|
1402
1402
|
args = [];
|
|
1403
1403
|
while (length--) {
|
|
@@ -2216,7 +2216,7 @@
|
|
|
2216
2216
|
var _on = ee.on;
|
|
2217
2217
|
var emit = ee.emit;
|
|
2218
2218
|
module.exports = function(original, length, options) {
|
|
2219
|
-
var
|
|
2219
|
+
var cache21 = create(null), conf, memLength, _get, set, del, _clear, extDel, extGet, extHas, normalizer, getListeners, setListeners, deleteListeners, memoized, resolve;
|
|
2220
2220
|
if (length !== false) {
|
|
2221
2221
|
memLength = length;
|
|
2222
2222
|
} else if (isNaN(original.length)) {
|
|
@@ -2242,11 +2242,11 @@
|
|
|
2242
2242
|
}
|
|
2243
2243
|
id = _get(args);
|
|
2244
2244
|
if (id !== null) {
|
|
2245
|
-
if (hasOwnProperty.call(
|
|
2245
|
+
if (hasOwnProperty.call(cache21, id)) {
|
|
2246
2246
|
if (getListeners) {
|
|
2247
2247
|
conf.emit('get', id, args, this);
|
|
2248
2248
|
}
|
|
2249
|
-
return
|
|
2249
|
+
return cache21[id];
|
|
2250
2250
|
}
|
|
2251
2251
|
}
|
|
2252
2252
|
if (args.length === 1) {
|
|
@@ -2260,10 +2260,10 @@
|
|
|
2260
2260
|
throw customError('Circular invocation', 'CIRCULAR_INVOCATION');
|
|
2261
2261
|
}
|
|
2262
2262
|
id = set(args);
|
|
2263
|
-
} else if (hasOwnProperty.call(
|
|
2263
|
+
} else if (hasOwnProperty.call(cache21, id)) {
|
|
2264
2264
|
throw customError('Circular invocation', 'CIRCULAR_INVOCATION');
|
|
2265
2265
|
}
|
|
2266
|
-
|
|
2266
|
+
cache21[id] = result;
|
|
2267
2267
|
if (setListeners) {
|
|
2268
2268
|
conf.emit('set', id, null, result);
|
|
2269
2269
|
}
|
|
@@ -2272,21 +2272,21 @@
|
|
|
2272
2272
|
} else if (length === 0) {
|
|
2273
2273
|
memoized = function memoized() {
|
|
2274
2274
|
var result;
|
|
2275
|
-
if (hasOwnProperty.call(
|
|
2275
|
+
if (hasOwnProperty.call(cache21, 'data')) {
|
|
2276
2276
|
if (getListeners) {
|
|
2277
2277
|
conf.emit('get', 'data', arguments, this);
|
|
2278
2278
|
}
|
|
2279
|
-
return
|
|
2279
|
+
return cache21.data;
|
|
2280
2280
|
}
|
|
2281
2281
|
if (arguments.length) {
|
|
2282
2282
|
result = apply.call(original, this, arguments);
|
|
2283
2283
|
} else {
|
|
2284
2284
|
result = call.call(original, this);
|
|
2285
2285
|
}
|
|
2286
|
-
if (hasOwnProperty.call(
|
|
2286
|
+
if (hasOwnProperty.call(cache21, 'data')) {
|
|
2287
2287
|
throw customError('Circular invocation', 'CIRCULAR_INVOCATION');
|
|
2288
2288
|
}
|
|
2289
|
-
|
|
2289
|
+
cache21.data = result;
|
|
2290
2290
|
if (setListeners) {
|
|
2291
2291
|
conf.emit('set', 'data', null, result);
|
|
2292
2292
|
}
|
|
@@ -2299,21 +2299,21 @@
|
|
|
2299
2299
|
args = resolve(arguments);
|
|
2300
2300
|
}
|
|
2301
2301
|
id = String(args[0]);
|
|
2302
|
-
if (hasOwnProperty.call(
|
|
2302
|
+
if (hasOwnProperty.call(cache21, id)) {
|
|
2303
2303
|
if (getListeners) {
|
|
2304
2304
|
conf.emit('get', id, args, this);
|
|
2305
2305
|
}
|
|
2306
|
-
return
|
|
2306
|
+
return cache21[id];
|
|
2307
2307
|
}
|
|
2308
2308
|
if (args.length === 1) {
|
|
2309
2309
|
result = call.call(original, this, args[0]);
|
|
2310
2310
|
} else {
|
|
2311
2311
|
result = apply.call(original, this, args);
|
|
2312
2312
|
}
|
|
2313
|
-
if (hasOwnProperty.call(
|
|
2313
|
+
if (hasOwnProperty.call(cache21, id)) {
|
|
2314
2314
|
throw customError('Circular invocation', 'CIRCULAR_INVOCATION');
|
|
2315
2315
|
}
|
|
2316
|
-
|
|
2316
|
+
cache21[id] = result;
|
|
2317
2317
|
if (setListeners) {
|
|
2318
2318
|
conf.emit('set', id, null, result);
|
|
2319
2319
|
}
|
|
@@ -2334,28 +2334,28 @@
|
|
|
2334
2334
|
return String(args[0]);
|
|
2335
2335
|
},
|
|
2336
2336
|
has: function has(id) {
|
|
2337
|
-
return hasOwnProperty.call(
|
|
2337
|
+
return hasOwnProperty.call(cache21, id);
|
|
2338
2338
|
},
|
|
2339
2339
|
delete: function _delete(id) {
|
|
2340
2340
|
var result;
|
|
2341
|
-
if (!hasOwnProperty.call(
|
|
2341
|
+
if (!hasOwnProperty.call(cache21, id)) {
|
|
2342
2342
|
return;
|
|
2343
2343
|
}
|
|
2344
2344
|
if (del) {
|
|
2345
2345
|
del(id);
|
|
2346
2346
|
}
|
|
2347
|
-
result =
|
|
2348
|
-
delete
|
|
2347
|
+
result = cache21[id];
|
|
2348
|
+
delete cache21[id];
|
|
2349
2349
|
if (deleteListeners) {
|
|
2350
2350
|
conf.emit('delete', id, result);
|
|
2351
2351
|
}
|
|
2352
2352
|
},
|
|
2353
2353
|
clear: function clear() {
|
|
2354
|
-
var oldCache =
|
|
2354
|
+
var oldCache = cache21;
|
|
2355
2355
|
if (_clear) {
|
|
2356
2356
|
_clear();
|
|
2357
2357
|
}
|
|
2358
|
-
|
|
2358
|
+
cache21 = create(null);
|
|
2359
2359
|
conf.emit('clear', oldCache);
|
|
2360
2360
|
},
|
|
2361
2361
|
on: function on(type, listener) {
|
|
@@ -2400,7 +2400,7 @@
|
|
|
2400
2400
|
extGet = defineLength(function() {
|
|
2401
2401
|
var id, args = arguments;
|
|
2402
2402
|
if (length === 0) {
|
|
2403
|
-
return
|
|
2403
|
+
return cache21.data;
|
|
2404
2404
|
}
|
|
2405
2405
|
if (resolve) {
|
|
2406
2406
|
args = resolve(args);
|
|
@@ -2410,7 +2410,7 @@
|
|
|
2410
2410
|
} else {
|
|
2411
2411
|
id = String(args[0]);
|
|
2412
2412
|
}
|
|
2413
|
-
return
|
|
2413
|
+
return cache21[id];
|
|
2414
2414
|
});
|
|
2415
2415
|
extHas = defineLength(function() {
|
|
2416
2416
|
var id, args = arguments;
|
|
@@ -2561,7 +2561,7 @@
|
|
|
2561
2561
|
var indexOf = require_e_index_of();
|
|
2562
2562
|
var create = Object.create;
|
|
2563
2563
|
module.exports = function() {
|
|
2564
|
-
var lastId = 0, map = [],
|
|
2564
|
+
var lastId = 0, map = [], cache21 = create(null);
|
|
2565
2565
|
return {
|
|
2566
2566
|
get: function get(args) {
|
|
2567
2567
|
var index = 0, set = map, i, length = args.length;
|
|
@@ -2609,11 +2609,11 @@
|
|
|
2609
2609
|
}
|
|
2610
2610
|
set[1][i] = ++lastId;
|
|
2611
2611
|
}
|
|
2612
|
-
|
|
2612
|
+
cache21[lastId] = args;
|
|
2613
2613
|
return lastId;
|
|
2614
2614
|
},
|
|
2615
2615
|
delete: function _delete(id) {
|
|
2616
|
-
var index = 0, set = map, i, args =
|
|
2616
|
+
var index = 0, set = map, i, args = cache21[id], length = args.length, path = [];
|
|
2617
2617
|
if (length === 0) {
|
|
2618
2618
|
delete set[length];
|
|
2619
2619
|
} else if (set = set[length]) {
|
|
@@ -2640,11 +2640,11 @@
|
|
|
2640
2640
|
set[1].splice(i, 1);
|
|
2641
2641
|
}
|
|
2642
2642
|
}
|
|
2643
|
-
delete
|
|
2643
|
+
delete cache21[id];
|
|
2644
2644
|
},
|
|
2645
2645
|
clear: function clear() {
|
|
2646
2646
|
map = [];
|
|
2647
|
-
|
|
2647
|
+
cache21 = create(null);
|
|
2648
2648
|
}
|
|
2649
2649
|
};
|
|
2650
2650
|
};
|
|
@@ -2653,27 +2653,27 @@
|
|
|
2653
2653
|
'use strict';
|
|
2654
2654
|
var indexOf = require_e_index_of();
|
|
2655
2655
|
module.exports = function() {
|
|
2656
|
-
var lastId = 0, argsMap = [],
|
|
2656
|
+
var lastId = 0, argsMap = [], cache21 = [];
|
|
2657
2657
|
return {
|
|
2658
2658
|
get: function get(args) {
|
|
2659
2659
|
var index = indexOf.call(argsMap, args[0]);
|
|
2660
|
-
return index === -1 ? null :
|
|
2660
|
+
return index === -1 ? null : cache21[index];
|
|
2661
2661
|
},
|
|
2662
2662
|
set: function set(args) {
|
|
2663
2663
|
argsMap.push(args[0]);
|
|
2664
|
-
|
|
2664
|
+
cache21.push(++lastId);
|
|
2665
2665
|
return lastId;
|
|
2666
2666
|
},
|
|
2667
2667
|
delete: function _delete(id) {
|
|
2668
|
-
var index = indexOf.call(
|
|
2668
|
+
var index = indexOf.call(cache21, id);
|
|
2669
2669
|
if (index !== -1) {
|
|
2670
2670
|
argsMap.splice(index, 1);
|
|
2671
|
-
|
|
2671
|
+
cache21.splice(index, 1);
|
|
2672
2672
|
}
|
|
2673
2673
|
},
|
|
2674
2674
|
clear: function clear() {
|
|
2675
2675
|
argsMap = [];
|
|
2676
|
-
|
|
2676
|
+
cache21 = [];
|
|
2677
2677
|
}
|
|
2678
2678
|
};
|
|
2679
2679
|
};
|
|
@@ -2683,7 +2683,7 @@
|
|
|
2683
2683
|
var indexOf = require_e_index_of();
|
|
2684
2684
|
var create = Object.create;
|
|
2685
2685
|
module.exports = function(length) {
|
|
2686
|
-
var lastId = 0, map = [ [], [] ],
|
|
2686
|
+
var lastId = 0, map = [ [], [] ], cache21 = create(null);
|
|
2687
2687
|
return {
|
|
2688
2688
|
get: function get(args) {
|
|
2689
2689
|
var index = 0, set = map, i;
|
|
@@ -2717,11 +2717,11 @@
|
|
|
2717
2717
|
i = set[0].push(args[index]) - 1;
|
|
2718
2718
|
}
|
|
2719
2719
|
set[1][i] = ++lastId;
|
|
2720
|
-
|
|
2720
|
+
cache21[lastId] = args;
|
|
2721
2721
|
return lastId;
|
|
2722
2722
|
},
|
|
2723
2723
|
delete: function _delete(id) {
|
|
2724
|
-
var index = 0, set = map, i, path = [], args =
|
|
2724
|
+
var index = 0, set = map, i, path = [], args = cache21[id];
|
|
2725
2725
|
while (index < length - 1) {
|
|
2726
2726
|
i = indexOf.call(set[0], args[index]);
|
|
2727
2727
|
if (i === -1) {
|
|
@@ -2744,11 +2744,11 @@
|
|
|
2744
2744
|
set[0].splice(i, 1);
|
|
2745
2745
|
set[1].splice(i, 1);
|
|
2746
2746
|
}
|
|
2747
|
-
delete
|
|
2747
|
+
delete cache21[id];
|
|
2748
2748
|
},
|
|
2749
2749
|
clear: function clear() {
|
|
2750
2750
|
map = [ [], [] ];
|
|
2751
|
-
|
|
2751
|
+
cache21 = create(null);
|
|
2752
2752
|
}
|
|
2753
2753
|
};
|
|
2754
2754
|
};
|
|
@@ -2861,7 +2861,7 @@
|
|
|
2861
2861
|
var apply = Function.prototype.apply;
|
|
2862
2862
|
var create = Object.create;
|
|
2863
2863
|
require_registered_extensions().async = function(tbi, conf) {
|
|
2864
|
-
var waiting = create(null),
|
|
2864
|
+
var waiting = create(null), cache21 = create(null), base = conf.memoized, original = conf.original, currentCallback, currentContext, currentArgs;
|
|
2865
2865
|
conf.memoized = defineLength(function(arg) {
|
|
2866
2866
|
var args = arguments, last = args[args.length - 1];
|
|
2867
2867
|
if (typeof last === 'function') {
|
|
@@ -2893,8 +2893,8 @@
|
|
|
2893
2893
|
currentCallback = currentContext = currentArgs = null;
|
|
2894
2894
|
nextTick(function() {
|
|
2895
2895
|
var data2;
|
|
2896
|
-
if (hasOwnProperty.call(
|
|
2897
|
-
data2 =
|
|
2896
|
+
if (hasOwnProperty.call(cache21, id)) {
|
|
2897
|
+
data2 = cache21[id];
|
|
2898
2898
|
conf.emit('getasync', id, args, context5);
|
|
2899
2899
|
apply.call(cb, data2.context, data2.args);
|
|
2900
2900
|
} else {
|
|
@@ -2928,7 +2928,7 @@
|
|
|
2928
2928
|
if (err2) {
|
|
2929
2929
|
conf['delete'](id);
|
|
2930
2930
|
} else {
|
|
2931
|
-
|
|
2931
|
+
cache21[id] = {
|
|
2932
2932
|
context: this,
|
|
2933
2933
|
args: args2
|
|
2934
2934
|
};
|
|
@@ -2975,16 +2975,16 @@
|
|
|
2975
2975
|
if (hasOwnProperty.call(waiting, id)) {
|
|
2976
2976
|
return;
|
|
2977
2977
|
}
|
|
2978
|
-
if (!
|
|
2978
|
+
if (!cache21[id]) {
|
|
2979
2979
|
return;
|
|
2980
2980
|
}
|
|
2981
|
-
result =
|
|
2982
|
-
delete
|
|
2981
|
+
result = cache21[id];
|
|
2982
|
+
delete cache21[id];
|
|
2983
2983
|
conf.emit('deleteasync', id, slice.call(result.args, 1));
|
|
2984
2984
|
});
|
|
2985
2985
|
conf.on('clear', function() {
|
|
2986
|
-
var oldCache =
|
|
2987
|
-
|
|
2986
|
+
var oldCache = cache21;
|
|
2987
|
+
cache21 = create(null);
|
|
2988
2988
|
conf.emit('clearasync', objectMap(oldCache, function(data2) {
|
|
2989
2989
|
return slice.call(data2.args, 1);
|
|
2990
2990
|
}));
|
|
@@ -3078,7 +3078,7 @@
|
|
|
3078
3078
|
var create = Object.create;
|
|
3079
3079
|
var supportedModes = primitiveSet('then', 'then:finally', 'done', 'done:finally');
|
|
3080
3080
|
require_registered_extensions().promise = function(mode, conf) {
|
|
3081
|
-
var waiting = create(null),
|
|
3081
|
+
var waiting = create(null), cache21 = create(null), promises = create(null);
|
|
3082
3082
|
if (mode === true) {
|
|
3083
3083
|
mode = null;
|
|
3084
3084
|
} else {
|
|
@@ -3090,7 +3090,7 @@
|
|
|
3090
3090
|
conf.on('set', function(id, ignore, promise) {
|
|
3091
3091
|
var isFailed = false;
|
|
3092
3092
|
if (!isPromise(promise)) {
|
|
3093
|
-
|
|
3093
|
+
cache21[id] = promise;
|
|
3094
3094
|
conf.emit('setasync', id, 1);
|
|
3095
3095
|
return;
|
|
3096
3096
|
}
|
|
@@ -3105,7 +3105,7 @@
|
|
|
3105
3105
|
return;
|
|
3106
3106
|
}
|
|
3107
3107
|
delete waiting[id];
|
|
3108
|
-
|
|
3108
|
+
cache21[id] = result;
|
|
3109
3109
|
conf.emit('setasync', id, count);
|
|
3110
3110
|
};
|
|
3111
3111
|
var onFailure = function onFailure() {
|
|
@@ -3175,16 +3175,16 @@
|
|
|
3175
3175
|
delete waiting[id];
|
|
3176
3176
|
return;
|
|
3177
3177
|
}
|
|
3178
|
-
if (!hasOwnProperty.call(
|
|
3178
|
+
if (!hasOwnProperty.call(cache21, id)) {
|
|
3179
3179
|
return;
|
|
3180
3180
|
}
|
|
3181
|
-
var result =
|
|
3182
|
-
delete
|
|
3181
|
+
var result = cache21[id];
|
|
3182
|
+
delete cache21[id];
|
|
3183
3183
|
conf.emit('deleteasync', id, [ result ]);
|
|
3184
3184
|
});
|
|
3185
3185
|
conf.on('clear', function() {
|
|
3186
|
-
var oldCache =
|
|
3187
|
-
|
|
3186
|
+
var oldCache = cache21;
|
|
3187
|
+
cache21 = create(null);
|
|
3188
3188
|
waiting = create(null);
|
|
3189
3189
|
promises = create(null);
|
|
3190
3190
|
conf.emit('clearasync', objectMap(oldCache, function(data2) {
|
|
@@ -3206,8 +3206,8 @@
|
|
|
3206
3206
|
conf.on('deleteasync', del = function del(id, resultArray) {
|
|
3207
3207
|
apply.call(dispose, null, resultArray);
|
|
3208
3208
|
});
|
|
3209
|
-
conf.on('clearasync', function(
|
|
3210
|
-
forEach(
|
|
3209
|
+
conf.on('clearasync', function(cache21) {
|
|
3210
|
+
forEach(cache21, function(result, id) {
|
|
3211
3211
|
del(id, result);
|
|
3212
3212
|
});
|
|
3213
3213
|
});
|
|
@@ -3216,8 +3216,8 @@
|
|
|
3216
3216
|
conf.on('delete', del = function del(id, result) {
|
|
3217
3217
|
dispose(result);
|
|
3218
3218
|
});
|
|
3219
|
-
conf.on('clear', function(
|
|
3220
|
-
forEach(
|
|
3219
|
+
conf.on('clear', function(cache21) {
|
|
3220
|
+
forEach(cache21, function(result, id) {
|
|
3221
3221
|
del(id, result);
|
|
3222
3222
|
});
|
|
3223
3223
|
});
|
|
@@ -3438,20 +3438,20 @@
|
|
|
3438
3438
|
var create = Object.create;
|
|
3439
3439
|
var defineProperties = Object.defineProperties;
|
|
3440
3440
|
extensions.refCounter = function(ignore, conf, options) {
|
|
3441
|
-
var
|
|
3442
|
-
|
|
3441
|
+
var cache21, postfix;
|
|
3442
|
+
cache21 = create(null);
|
|
3443
3443
|
postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : '';
|
|
3444
3444
|
conf.on('set' + postfix, function(id, length) {
|
|
3445
|
-
|
|
3445
|
+
cache21[id] = length || 1;
|
|
3446
3446
|
});
|
|
3447
3447
|
conf.on('get' + postfix, function(id) {
|
|
3448
|
-
++
|
|
3448
|
+
++cache21[id];
|
|
3449
3449
|
});
|
|
3450
3450
|
conf.on('delete' + postfix, function(id) {
|
|
3451
|
-
delete
|
|
3451
|
+
delete cache21[id];
|
|
3452
3452
|
});
|
|
3453
3453
|
conf.on('clear' + postfix, function() {
|
|
3454
|
-
|
|
3454
|
+
cache21 = {};
|
|
3455
3455
|
});
|
|
3456
3456
|
defineProperties(conf.memoized, {
|
|
3457
3457
|
deleteRef: d(function() {
|
|
@@ -3459,10 +3459,10 @@
|
|
|
3459
3459
|
if (id === null) {
|
|
3460
3460
|
return null;
|
|
3461
3461
|
}
|
|
3462
|
-
if (!
|
|
3462
|
+
if (!cache21[id]) {
|
|
3463
3463
|
return null;
|
|
3464
3464
|
}
|
|
3465
|
-
if (!--
|
|
3465
|
+
if (!--cache21[id]) {
|
|
3466
3466
|
conf['delete'](id);
|
|
3467
3467
|
return true;
|
|
3468
3468
|
}
|
|
@@ -3473,10 +3473,10 @@
|
|
|
3473
3473
|
if (id === null) {
|
|
3474
3474
|
return 0;
|
|
3475
3475
|
}
|
|
3476
|
-
if (!
|
|
3476
|
+
if (!cache21[id]) {
|
|
3477
3477
|
return 0;
|
|
3478
3478
|
}
|
|
3479
|
-
return
|
|
3479
|
+
return cache21[id];
|
|
3480
3480
|
})
|
|
3481
3481
|
});
|
|
3482
3482
|
};
|
|
@@ -5043,6 +5043,9 @@
|
|
|
5043
5043
|
getCheckOption: function getCheckOption() {
|
|
5044
5044
|
return get_check_option_default;
|
|
5045
5045
|
},
|
|
5046
|
+
getEnvironmentData: function getEnvironmentData() {
|
|
5047
|
+
return _getEnvironmentData;
|
|
5048
|
+
},
|
|
5046
5049
|
getFlattenedTree: function getFlattenedTree() {
|
|
5047
5050
|
return get_flattened_tree_default;
|
|
5048
5051
|
},
|
|
@@ -7322,13 +7325,14 @@
|
|
|
7322
7325
|
});
|
|
7323
7326
|
}
|
|
7324
7327
|
function isVisible(el, screenReader, recursed) {
|
|
7328
|
+
var _window$Node;
|
|
7325
7329
|
if (!el) {
|
|
7326
7330
|
throw new TypeError('Cannot determine if element is visible for non-DOM nodes');
|
|
7327
7331
|
}
|
|
7328
7332
|
var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
|
|
7329
7333
|
el = vNode ? vNode.actualNode : el;
|
|
7330
7334
|
var cacheName = '_isVisible' + (screenReader ? 'ScreenReader' : '');
|
|
7331
|
-
var _window$Node = window.Node, DOCUMENT_NODE =
|
|
7335
|
+
var _ref9 = (_window$Node = window.Node) !== null && _window$Node !== void 0 ? _window$Node : {}, DOCUMENT_NODE = _ref9.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref9.DOCUMENT_FRAGMENT_NODE;
|
|
7332
7336
|
var nodeType = vNode ? vNode.props.nodeType : el.nodeType;
|
|
7333
7337
|
var nodeName2 = vNode ? vNode.props.nodeName : el.nodeName.toLowerCase();
|
|
7334
7338
|
if (vNode && typeof vNode[cacheName] !== 'undefined') {
|
|
@@ -7371,9 +7375,12 @@
|
|
|
7371
7375
|
return false;
|
|
7372
7376
|
}
|
|
7373
7377
|
var elHeight = parseInt(style.getPropertyValue('height'));
|
|
7374
|
-
var
|
|
7375
|
-
var
|
|
7376
|
-
|
|
7378
|
+
var elWidth = parseInt(style.getPropertyValue('width'));
|
|
7379
|
+
var scroll = get_scroll_default(el);
|
|
7380
|
+
var scrollableWithZeroHeight = scroll && elHeight === 0;
|
|
7381
|
+
var scrollableWithZeroWidth = scroll && elWidth === 0;
|
|
7382
|
+
var posAbsoluteOverflowHiddenAndSmall = style.getPropertyValue('position') === 'absolute' && (elHeight < 2 || elWidth < 2) && style.getPropertyValue('overflow') === 'hidden';
|
|
7383
|
+
if (!screenReader && (isClipped(style) || style.getPropertyValue('opacity') === '0' || scrollableWithZeroHeight || scrollableWithZeroWidth || posAbsoluteOverflowHiddenAndSmall)) {
|
|
7377
7384
|
return false;
|
|
7378
7385
|
}
|
|
7379
7386
|
if (!recursed && (style.getPropertyValue('visibility') === 'hidden' || !screenReader && is_offscreen_default(el))) {
|
|
@@ -7824,8 +7831,8 @@
|
|
|
7824
7831
|
var hiddenTextElms = [ 'HEAD', 'TITLE', 'TEMPLATE', 'SCRIPT', 'STYLE', 'IFRAME', 'OBJECT', 'VIDEO', 'AUDIO', 'NOSCRIPT' ];
|
|
7825
7832
|
function hasChildTextNodes(elm) {
|
|
7826
7833
|
if (!hiddenTextElms.includes(elm.actualNode.nodeName.toUpperCase())) {
|
|
7827
|
-
return elm.children.some(function(
|
|
7828
|
-
var actualNode =
|
|
7834
|
+
return elm.children.some(function(_ref10) {
|
|
7835
|
+
var actualNode = _ref10.actualNode;
|
|
7829
7836
|
return actualNode.nodeType === 3 && actualNode.nodeValue.trim();
|
|
7830
7837
|
});
|
|
7831
7838
|
}
|
|
@@ -8446,6 +8453,11 @@
|
|
|
8446
8453
|
allowedAttrs: [ 'aria-expanded' ],
|
|
8447
8454
|
superclassRole: [ 'landmark' ]
|
|
8448
8455
|
},
|
|
8456
|
+
comment: {
|
|
8457
|
+
type: 'structure',
|
|
8458
|
+
allowedAttrs: [ 'aria-level', 'aria-posinset', 'aria-setsize' ],
|
|
8459
|
+
superclassRole: [ 'article' ]
|
|
8460
|
+
},
|
|
8449
8461
|
definition: {
|
|
8450
8462
|
type: 'structure',
|
|
8451
8463
|
allowedAttrs: [ 'aria-expanded' ],
|
|
@@ -8636,6 +8648,11 @@
|
|
|
8636
8648
|
accessibleNameRequired: true,
|
|
8637
8649
|
childrenPresentational: true
|
|
8638
8650
|
},
|
|
8651
|
+
mark: {
|
|
8652
|
+
type: 'structure',
|
|
8653
|
+
superclassRole: [ 'section' ],
|
|
8654
|
+
prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]
|
|
8655
|
+
},
|
|
8639
8656
|
navigation: {
|
|
8640
8657
|
type: 'landmark',
|
|
8641
8658
|
allowedAttrs: [ 'aria-expanded' ],
|
|
@@ -8815,6 +8832,12 @@
|
|
|
8815
8832
|
nameFromContent: true,
|
|
8816
8833
|
childrenPresentational: true
|
|
8817
8834
|
},
|
|
8835
|
+
suggestion: {
|
|
8836
|
+
type: 'structure',
|
|
8837
|
+
requiredOwned: [ 'insertion', 'deletion' ],
|
|
8838
|
+
superclassRole: [ 'section' ],
|
|
8839
|
+
prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]
|
|
8840
|
+
},
|
|
8818
8841
|
tab: {
|
|
8819
8842
|
type: 'widget',
|
|
8820
8843
|
requiredContext: [ 'tablist' ],
|
|
@@ -9191,7 +9214,7 @@
|
|
|
9191
9214
|
},
|
|
9192
9215
|
b: {
|
|
9193
9216
|
contentTypes: [ 'phrasing', 'flow' ],
|
|
9194
|
-
allowedRoles:
|
|
9217
|
+
allowedRoles: true
|
|
9195
9218
|
},
|
|
9196
9219
|
base: {
|
|
9197
9220
|
allowedRoles: false,
|
|
@@ -9594,7 +9617,7 @@
|
|
|
9594
9617
|
},
|
|
9595
9618
|
nav: {
|
|
9596
9619
|
contentTypes: [ 'sectioning', 'flow' ],
|
|
9597
|
-
allowedRoles: [ 'doc-index', 'doc-pagelist', 'doc-toc' ],
|
|
9620
|
+
allowedRoles: [ 'doc-index', 'doc-pagelist', 'doc-toc', 'menu', 'menubar', 'tablist' ],
|
|
9598
9621
|
shadowRoot: true
|
|
9599
9622
|
},
|
|
9600
9623
|
noscript: {
|
|
@@ -9653,7 +9676,7 @@
|
|
|
9653
9676
|
},
|
|
9654
9677
|
progress: {
|
|
9655
9678
|
contentTypes: [ 'phrasing', 'flow' ],
|
|
9656
|
-
allowedRoles:
|
|
9679
|
+
allowedRoles: false,
|
|
9657
9680
|
implicitAttrs: {
|
|
9658
9681
|
'aria-valuemax': '100',
|
|
9659
9682
|
'aria-valuemin': '0',
|
|
@@ -9741,7 +9764,7 @@
|
|
|
9741
9764
|
},
|
|
9742
9765
|
svg: {
|
|
9743
9766
|
contentTypes: [ 'embedded', 'phrasing', 'flow' ],
|
|
9744
|
-
allowedRoles:
|
|
9767
|
+
allowedRoles: true,
|
|
9745
9768
|
chromiumRole: 'SVGRoot',
|
|
9746
9769
|
namingMethods: [ 'svgTitleText' ]
|
|
9747
9770
|
},
|
|
@@ -10025,8 +10048,8 @@
|
|
|
10025
10048
|
}
|
|
10026
10049
|
return parseFloat(value);
|
|
10027
10050
|
}
|
|
10028
|
-
function hslToRgb(
|
|
10029
|
-
var
|
|
10051
|
+
function hslToRgb(_ref11) {
|
|
10052
|
+
var _ref12 = _slicedToArray(_ref11, 4), hue = _ref12[0], saturation = _ref12[1], lightness = _ref12[2], alpha = _ref12[3];
|
|
10030
10053
|
saturation /= 255;
|
|
10031
10054
|
lightness /= 255;
|
|
10032
10055
|
var high = (1 - Math.abs(2 * lightness - 1)) * saturation;
|
|
@@ -10065,7 +10088,7 @@
|
|
|
10065
10088
|
var colorFnRegex = /^((?:rgb|hsl)a?)\s*\(([^\)]*)\)/i;
|
|
10066
10089
|
this.parseString = function parseString(colorString) {
|
|
10067
10090
|
if (standards_default.cssColors[colorString] || colorString === 'transparent') {
|
|
10068
|
-
var
|
|
10091
|
+
var _ref13 = standards_default.cssColors[colorString] || [ 0, 0, 0 ], _ref14 = _slicedToArray(_ref13, 3), red2 = _ref14[0], green2 = _ref14[1], blue2 = _ref14[2];
|
|
10069
10092
|
this.red = red2;
|
|
10070
10093
|
this.green = green2;
|
|
10071
10094
|
this.blue = blue2;
|
|
@@ -10115,7 +10138,7 @@
|
|
|
10115
10138
|
}
|
|
10116
10139
|
};
|
|
10117
10140
|
this.parseColorFnString = function parseColorFnString(colorString) {
|
|
10118
|
-
var
|
|
10141
|
+
var _ref15 = colorString.match(colorFnRegex) || [], _ref16 = _slicedToArray(_ref15, 3), colorFunc = _ref16[1], colorValStr = _ref16[2];
|
|
10119
10142
|
if (!colorFunc || !colorValStr) {
|
|
10120
10143
|
return;
|
|
10121
10144
|
}
|
|
@@ -10404,7 +10427,7 @@
|
|
|
10404
10427
|
key: 'props',
|
|
10405
10428
|
get: function get() {
|
|
10406
10429
|
if (!this._cache.hasOwnProperty('props')) {
|
|
10407
|
-
var _this$actualNode = this.actualNode, nodeType = _this$actualNode.nodeType, nodeName2 = _this$actualNode.nodeName, id = _this$actualNode.id, multiple = _this$actualNode.multiple, nodeValue = _this$actualNode.nodeValue, value = _this$actualNode.value;
|
|
10430
|
+
var _this$actualNode = this.actualNode, nodeType = _this$actualNode.nodeType, nodeName2 = _this$actualNode.nodeName, id = _this$actualNode.id, multiple = _this$actualNode.multiple, nodeValue = _this$actualNode.nodeValue, value = _this$actualNode.value, selected = _this$actualNode.selected;
|
|
10408
10431
|
this._cache.props = {
|
|
10409
10432
|
nodeType: nodeType,
|
|
10410
10433
|
nodeName: this._isXHTML ? nodeName2 : nodeName2.toLowerCase(),
|
|
@@ -10412,7 +10435,8 @@
|
|
|
10412
10435
|
type: this._type,
|
|
10413
10436
|
multiple: multiple,
|
|
10414
10437
|
nodeValue: nodeValue,
|
|
10415
|
-
value: value
|
|
10438
|
+
value: value,
|
|
10439
|
+
selected: selected
|
|
10416
10440
|
};
|
|
10417
10441
|
}
|
|
10418
10442
|
return this._cache.props;
|
|
@@ -10600,30 +10624,6 @@
|
|
|
10600
10624
|
}).join('\n\n');
|
|
10601
10625
|
}
|
|
10602
10626
|
var failure_summary_default = failureSummary;
|
|
10603
|
-
function getEnvironmentData() {
|
|
10604
|
-
var win = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;
|
|
10605
|
-
var _win$screen = win.screen, screen = _win$screen === void 0 ? {} : _win$screen, _win$navigator = win.navigator, navigator = _win$navigator === void 0 ? {} : _win$navigator, _win$location = win.location, location = _win$location === void 0 ? {} : _win$location, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
|
|
10606
|
-
var orientation = screen.msOrientation || screen.orientation || screen.mozOrientation || {};
|
|
10607
|
-
return {
|
|
10608
|
-
testEngine: {
|
|
10609
|
-
name: 'axe-core',
|
|
10610
|
-
version: axe.version
|
|
10611
|
-
},
|
|
10612
|
-
testRunner: {
|
|
10613
|
-
name: axe._audit.brand
|
|
10614
|
-
},
|
|
10615
|
-
testEnvironment: {
|
|
10616
|
-
userAgent: navigator.userAgent,
|
|
10617
|
-
windowWidth: innerWidth,
|
|
10618
|
-
windowHeight: innerHeight,
|
|
10619
|
-
orientationAngle: orientation.angle,
|
|
10620
|
-
orientationType: orientation.type
|
|
10621
|
-
},
|
|
10622
|
-
timestamp: new Date().toISOString(),
|
|
10623
|
-
url: location.href
|
|
10624
|
-
};
|
|
10625
|
-
}
|
|
10626
|
-
var get_environment_data_default = getEnvironmentData;
|
|
10627
10627
|
function incompleteFallbackMessage() {
|
|
10628
10628
|
return typeof axe._audit.data.incompleteFallbackMessage === 'function' ? axe._audit.data.incompleteFallbackMessage() : axe._audit.data.incompleteFallbackMessage;
|
|
10629
10629
|
}
|
|
@@ -10707,7 +10707,6 @@
|
|
|
10707
10707
|
axe._thisWillBeDeletedDoNotUse = axe._thisWillBeDeletedDoNotUse || {};
|
|
10708
10708
|
axe._thisWillBeDeletedDoNotUse.helpers = {
|
|
10709
10709
|
failureSummary: failure_summary_default,
|
|
10710
|
-
getEnvironmentData: get_environment_data_default,
|
|
10711
10710
|
incompleteFallbackMessage: incomplete_fallback_msg_default,
|
|
10712
10711
|
processAggregate: process_aggregate_default
|
|
10713
10712
|
};
|
|
@@ -10790,8 +10789,48 @@
|
|
|
10790
10789
|
};
|
|
10791
10790
|
}
|
|
10792
10791
|
var get_check_option_default = getCheckOption;
|
|
10793
|
-
function
|
|
10794
|
-
var
|
|
10792
|
+
function _getEnvironmentData() {
|
|
10793
|
+
var _win$location;
|
|
10794
|
+
var metadata = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
10795
|
+
var win = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window;
|
|
10796
|
+
if (metadata && _typeof(metadata) === 'object') {
|
|
10797
|
+
return metadata;
|
|
10798
|
+
} else if (_typeof(win) !== 'object') {
|
|
10799
|
+
return {};
|
|
10800
|
+
}
|
|
10801
|
+
return {
|
|
10802
|
+
testEngine: {
|
|
10803
|
+
name: 'axe-core',
|
|
10804
|
+
version: axe.version
|
|
10805
|
+
},
|
|
10806
|
+
testRunner: {
|
|
10807
|
+
name: axe._audit.brand
|
|
10808
|
+
},
|
|
10809
|
+
testEnvironment: getTestEnvironment(win),
|
|
10810
|
+
timestamp: new Date().toISOString(),
|
|
10811
|
+
url: (_win$location = win.location) === null || _win$location === void 0 ? void 0 : _win$location.href
|
|
10812
|
+
};
|
|
10813
|
+
}
|
|
10814
|
+
function getTestEnvironment(win) {
|
|
10815
|
+
if (!win.navigator || _typeof(win.navigator) !== 'object') {
|
|
10816
|
+
return {};
|
|
10817
|
+
}
|
|
10818
|
+
var navigator = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
|
|
10819
|
+
var _ref17 = getOrientation(win) || {}, angle = _ref17.angle, type = _ref17.type;
|
|
10820
|
+
return {
|
|
10821
|
+
userAgent: navigator.userAgent,
|
|
10822
|
+
windowWidth: innerWidth,
|
|
10823
|
+
windowHeight: innerHeight,
|
|
10824
|
+
orientationAngle: angle,
|
|
10825
|
+
orientationType: type
|
|
10826
|
+
};
|
|
10827
|
+
}
|
|
10828
|
+
function getOrientation(_ref18) {
|
|
10829
|
+
var screen = _ref18.screen;
|
|
10830
|
+
return screen.orientation || screen.msOrientation || screen.mozOrientation;
|
|
10831
|
+
}
|
|
10832
|
+
function createFrameContext(frame, _ref19) {
|
|
10833
|
+
var focusable = _ref19.focusable, page = _ref19.page;
|
|
10795
10834
|
return {
|
|
10796
10835
|
node: frame,
|
|
10797
10836
|
include: [],
|
|
@@ -10829,8 +10868,8 @@
|
|
|
10829
10868
|
}
|
|
10830
10869
|
context5.frames.push(createFrameContext(frame, context5));
|
|
10831
10870
|
}
|
|
10832
|
-
function isPageContext(
|
|
10833
|
-
var include =
|
|
10871
|
+
function isPageContext(_ref20) {
|
|
10872
|
+
var include = _ref20.include;
|
|
10834
10873
|
return include.length === 1 && include[0].actualNode === document.documentElement;
|
|
10835
10874
|
}
|
|
10836
10875
|
function pushUniqueFrameSelector(context5, type, selectorArray) {
|
|
@@ -10930,8 +10969,8 @@
|
|
|
10930
10969
|
});
|
|
10931
10970
|
}
|
|
10932
10971
|
}
|
|
10933
|
-
function getRootNode2(
|
|
10934
|
-
var include =
|
|
10972
|
+
function getRootNode2(_ref21) {
|
|
10973
|
+
var include = _ref21.include, exclude = _ref21.exclude;
|
|
10935
10974
|
var selectors = Array.from(include).concat(Array.from(exclude));
|
|
10936
10975
|
for (var i = 0; i < selectors.length; ++i) {
|
|
10937
10976
|
var item = selectors[i];
|
|
@@ -10980,8 +11019,8 @@
|
|
|
10980
11019
|
}
|
|
10981
11020
|
function _getFrameContexts(context5) {
|
|
10982
11021
|
var _Context = new Context(context5), frames = _Context.frames;
|
|
10983
|
-
return frames.map(function(
|
|
10984
|
-
var node =
|
|
11022
|
+
return frames.map(function(_ref22) {
|
|
11023
|
+
var node = _ref22.node, frameContext = _objectWithoutProperties(_ref22, _excluded2);
|
|
10985
11024
|
frameContext.initiator = false;
|
|
10986
11025
|
var frameSelector = _getAncestry(node);
|
|
10987
11026
|
return {
|
|
@@ -11666,8 +11705,8 @@
|
|
|
11666
11705
|
return matchExpressions(domTree, expressions, filter);
|
|
11667
11706
|
}
|
|
11668
11707
|
var query_selector_all_filter_default = querySelectorAllFilter;
|
|
11669
|
-
function preloadCssom(
|
|
11670
|
-
var
|
|
11708
|
+
function preloadCssom(_ref23) {
|
|
11709
|
+
var _ref23$treeRoot = _ref23.treeRoot, treeRoot = _ref23$treeRoot === void 0 ? axe._tree[0] : _ref23$treeRoot;
|
|
11671
11710
|
var rootNodes = getAllRootNodesInTree(treeRoot);
|
|
11672
11711
|
if (!rootNodes.length) {
|
|
11673
11712
|
return Promise.resolve();
|
|
@@ -11697,8 +11736,8 @@
|
|
|
11697
11736
|
}
|
|
11698
11737
|
function getCssomForAllRootNodes(rootNodes, convertDataToStylesheet) {
|
|
11699
11738
|
var promises = [];
|
|
11700
|
-
rootNodes.forEach(function(
|
|
11701
|
-
var rootNode =
|
|
11739
|
+
rootNodes.forEach(function(_ref24, index) {
|
|
11740
|
+
var rootNode = _ref24.rootNode, shadowId = _ref24.shadowId;
|
|
11702
11741
|
var sheets = getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet);
|
|
11703
11742
|
if (!sheets) {
|
|
11704
11743
|
return Promise.all(promises);
|
|
@@ -11779,10 +11818,10 @@
|
|
|
11779
11818
|
return true;
|
|
11780
11819
|
});
|
|
11781
11820
|
}
|
|
11782
|
-
function preloadMedia(
|
|
11783
|
-
var
|
|
11784
|
-
var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(
|
|
11785
|
-
var actualNode =
|
|
11821
|
+
function preloadMedia(_ref25) {
|
|
11822
|
+
var _ref25$treeRoot = _ref25.treeRoot, treeRoot = _ref25$treeRoot === void 0 ? axe._tree[0] : _ref25$treeRoot;
|
|
11823
|
+
var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref26) {
|
|
11824
|
+
var actualNode = _ref26.actualNode;
|
|
11786
11825
|
if (actualNode.hasAttribute('src')) {
|
|
11787
11826
|
return !!actualNode.getAttribute('src');
|
|
11788
11827
|
}
|
|
@@ -11794,8 +11833,8 @@
|
|
|
11794
11833
|
}
|
|
11795
11834
|
return true;
|
|
11796
11835
|
});
|
|
11797
|
-
return Promise.all(mediaVirtualNodes.map(function(
|
|
11798
|
-
var actualNode =
|
|
11836
|
+
return Promise.all(mediaVirtualNodes.map(function(_ref27) {
|
|
11837
|
+
var actualNode = _ref27.actualNode;
|
|
11799
11838
|
return isMediaElementReady(actualNode);
|
|
11800
11839
|
}));
|
|
11801
11840
|
}
|
|
@@ -12090,8 +12129,8 @@
|
|
|
12090
12129
|
}
|
|
12091
12130
|
}
|
|
12092
12131
|
function setScrollState(scrollState) {
|
|
12093
|
-
scrollState.forEach(function(
|
|
12094
|
-
var elm =
|
|
12132
|
+
scrollState.forEach(function(_ref29) {
|
|
12133
|
+
var elm = _ref29.elm, top = _ref29.top, left = _ref29.left;
|
|
12095
12134
|
return setScroll(elm, top, left);
|
|
12096
12135
|
});
|
|
12097
12136
|
}
|
|
@@ -12202,9 +12241,9 @@
|
|
|
12202
12241
|
nodeTypeToName[nodeNamesToTypes[nodeName2]] = nodeName2;
|
|
12203
12242
|
});
|
|
12204
12243
|
function normaliseProps(serialNode) {
|
|
12205
|
-
var _serialNode$nodeName,
|
|
12244
|
+
var _serialNode$nodeName, _ref30, _serialNode$nodeType;
|
|
12206
12245
|
var nodeName2 = (_serialNode$nodeName = serialNode.nodeName) !== null && _serialNode$nodeName !== void 0 ? _serialNode$nodeName : nodeTypeToName[serialNode.nodeType];
|
|
12207
|
-
var nodeType = (
|
|
12246
|
+
var nodeType = (_ref30 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref30 !== void 0 ? _ref30 : 1;
|
|
12208
12247
|
assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \''.concat(nodeType, '\''));
|
|
12209
12248
|
assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \''.concat(nodeName2, '\''));
|
|
12210
12249
|
nodeName2 = nodeName2.toLowerCase();
|
|
@@ -12225,8 +12264,8 @@
|
|
|
12225
12264
|
delete props.attributes;
|
|
12226
12265
|
return Object.freeze(props);
|
|
12227
12266
|
}
|
|
12228
|
-
function normaliseAttrs(
|
|
12229
|
-
var
|
|
12267
|
+
function normaliseAttrs(_ref31) {
|
|
12268
|
+
var _ref31$attributes = _ref31.attributes, attributes4 = _ref31$attributes === void 0 ? {} : _ref31$attributes;
|
|
12230
12269
|
var attrMap = {
|
|
12231
12270
|
htmlFor: 'for',
|
|
12232
12271
|
className: 'class'
|
|
@@ -12368,7 +12407,7 @@
|
|
|
12368
12407
|
}
|
|
12369
12408
|
var is_unsupported_role_default = isUnsupportedRole;
|
|
12370
12409
|
function isValidRole(role) {
|
|
12371
|
-
var
|
|
12410
|
+
var _ref32 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref32.allowAbstract, _ref32$flagUnsupporte = _ref32.flagUnsupported, flagUnsupported = _ref32$flagUnsupporte === void 0 ? false : _ref32$flagUnsupporte;
|
|
12372
12411
|
var roleDefinition = standards_default.ariaRoles[role];
|
|
12373
12412
|
var isRoleUnsupported = is_unsupported_role_default(role);
|
|
12374
12413
|
if (!roleDefinition || flagUnsupported && isRoleUnsupported) {
|
|
@@ -12378,7 +12417,7 @@
|
|
|
12378
12417
|
}
|
|
12379
12418
|
var is_valid_role_default = isValidRole;
|
|
12380
12419
|
function getExplicitRole(vNode) {
|
|
12381
|
-
var
|
|
12420
|
+
var _ref33 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref33.fallback, abstracts = _ref33.abstracts, dpub = _ref33.dpub;
|
|
12382
12421
|
vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
|
|
12383
12422
|
if (vNode.props.nodeType !== 1) {
|
|
12384
12423
|
return null;
|
|
@@ -12777,7 +12816,7 @@
|
|
|
12777
12816
|
}
|
|
12778
12817
|
var get_element_spec_default = getElementSpec;
|
|
12779
12818
|
function implicitRole2(node) {
|
|
12780
|
-
var
|
|
12819
|
+
var _ref34 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref34.chromium;
|
|
12781
12820
|
var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
|
|
12782
12821
|
node = vNode.actualNode;
|
|
12783
12822
|
if (!vNode) {
|
|
@@ -12827,8 +12866,8 @@
|
|
|
12827
12866
|
}
|
|
12828
12867
|
return getInheritedRole(vNode.parent, explicitRoleOptions);
|
|
12829
12868
|
}
|
|
12830
|
-
function resolveImplicitRole(vNode,
|
|
12831
|
-
var chromium =
|
|
12869
|
+
function resolveImplicitRole(vNode, _ref35) {
|
|
12870
|
+
var chromium = _ref35.chromium, explicitRoleOptions = _objectWithoutProperties(_ref35, _excluded5);
|
|
12832
12871
|
var implicitRole3 = implicit_role_default(vNode, {
|
|
12833
12872
|
chromium: chromium
|
|
12834
12873
|
});
|
|
@@ -12848,8 +12887,8 @@
|
|
|
12848
12887
|
return hasGlobalAria || is_focusable_default(vNode);
|
|
12849
12888
|
}
|
|
12850
12889
|
function resolveRole(node) {
|
|
12851
|
-
var
|
|
12852
|
-
var noImplicit =
|
|
12890
|
+
var _ref36 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
12891
|
+
var noImplicit = _ref36.noImplicit, roleOptions = _objectWithoutProperties(_ref36, _excluded6);
|
|
12853
12892
|
var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
|
|
12854
12893
|
if (vNode.props.nodeType !== 1) {
|
|
12855
12894
|
return null;
|
|
@@ -12867,8 +12906,8 @@
|
|
|
12867
12906
|
return explicitRole2;
|
|
12868
12907
|
}
|
|
12869
12908
|
function getRole(node) {
|
|
12870
|
-
var
|
|
12871
|
-
var noPresentational =
|
|
12909
|
+
var _ref37 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
12910
|
+
var noPresentational = _ref37.noPresentational, options = _objectWithoutProperties(_ref37, _excluded7);
|
|
12872
12911
|
var role = resolveRole(node, options);
|
|
12873
12912
|
if (noPresentational && [ 'presentation', 'none' ].includes(role)) {
|
|
12874
12913
|
return null;
|
|
@@ -12889,7 +12928,7 @@
|
|
|
12889
12928
|
}
|
|
12890
12929
|
var title_text_default = titleText;
|
|
12891
12930
|
function namedFromContents(vNode) {
|
|
12892
|
-
var
|
|
12931
|
+
var _ref38 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref38.strict;
|
|
12893
12932
|
vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
|
|
12894
12933
|
if (vNode.props.nodeType !== 1) {
|
|
12895
12934
|
return false;
|
|
@@ -13012,12 +13051,12 @@
|
|
|
13012
13051
|
button: ''
|
|
13013
13052
|
};
|
|
13014
13053
|
var nativeTextMethods = {
|
|
13015
|
-
valueText: function valueText(
|
|
13016
|
-
var actualNode =
|
|
13054
|
+
valueText: function valueText(_ref39) {
|
|
13055
|
+
var actualNode = _ref39.actualNode;
|
|
13017
13056
|
return actualNode.value || '';
|
|
13018
13057
|
},
|
|
13019
|
-
buttonDefaultText: function buttonDefaultText(
|
|
13020
|
-
var actualNode =
|
|
13058
|
+
buttonDefaultText: function buttonDefaultText(_ref40) {
|
|
13059
|
+
var actualNode = _ref40.actualNode;
|
|
13021
13060
|
return defaultButtonValues[actualNode.type] || '';
|
|
13022
13061
|
},
|
|
13023
13062
|
tableCaptionText: descendantText.bind(null, 'caption'),
|
|
@@ -13037,8 +13076,8 @@
|
|
|
13037
13076
|
function attrText(attr, vNode) {
|
|
13038
13077
|
return vNode.attr(attr) || '';
|
|
13039
13078
|
}
|
|
13040
|
-
function descendantText(nodeName2,
|
|
13041
|
-
var actualNode =
|
|
13079
|
+
function descendantText(nodeName2, _ref41, context5) {
|
|
13080
|
+
var actualNode = _ref41.actualNode;
|
|
13042
13081
|
nodeName2 = nodeName2.toLowerCase();
|
|
13043
13082
|
var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(',');
|
|
13044
13083
|
var candidate = actualNode.querySelector(nodeNames2);
|
|
@@ -13151,7 +13190,7 @@
|
|
|
13151
13190
|
}
|
|
13152
13191
|
var options = query_selector_all_default(vNode, 'option');
|
|
13153
13192
|
var selectedOptions = options.filter(function(option) {
|
|
13154
|
-
return option.
|
|
13193
|
+
return option.props.selected;
|
|
13155
13194
|
});
|
|
13156
13195
|
if (!selectedOptions.length) {
|
|
13157
13196
|
selectedOptions.push(options[0]);
|
|
@@ -13232,8 +13271,8 @@
|
|
|
13232
13271
|
}
|
|
13233
13272
|
return virtualNode.props.nodeValue;
|
|
13234
13273
|
}
|
|
13235
|
-
function shouldIgnoreHidden(
|
|
13236
|
-
var actualNode =
|
|
13274
|
+
function shouldIgnoreHidden(_ref42, context5) {
|
|
13275
|
+
var actualNode = _ref42.actualNode;
|
|
13237
13276
|
if (!actualNode) {
|
|
13238
13277
|
return false;
|
|
13239
13278
|
}
|
|
@@ -13524,7 +13563,7 @@
|
|
|
13524
13563
|
locations: [ 'billing', 'shipping' ]
|
|
13525
13564
|
};
|
|
13526
13565
|
function isValidAutocomplete(autocompleteValue) {
|
|
13527
|
-
var
|
|
13566
|
+
var _ref43 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref43$looseTyped = _ref43.looseTyped, looseTyped = _ref43$looseTyped === void 0 ? false : _ref43$looseTyped, _ref43$stateTerms = _ref43.stateTerms, stateTerms = _ref43$stateTerms === void 0 ? [] : _ref43$stateTerms, _ref43$locations = _ref43.locations, locations = _ref43$locations === void 0 ? [] : _ref43$locations, _ref43$qualifiers = _ref43.qualifiers, qualifiers = _ref43$qualifiers === void 0 ? [] : _ref43$qualifiers, _ref43$standaloneTerm = _ref43.standaloneTerms, standaloneTerms = _ref43$standaloneTerm === void 0 ? [] : _ref43$standaloneTerm, _ref43$qualifiedTerms = _ref43.qualifiedTerms, qualifiedTerms = _ref43$qualifiedTerms === void 0 ? [] : _ref43$qualifiedTerms;
|
|
13528
13567
|
autocompleteValue = autocompleteValue.toLowerCase().trim();
|
|
13529
13568
|
stateTerms = stateTerms.concat(_autocomplete.stateTerms);
|
|
13530
13569
|
if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') {
|
|
@@ -15549,8 +15588,8 @@
|
|
|
15549
15588
|
nodeName: [ 'abbr', 'address', 'canvas', 'div', 'p', 'pre', 'blockquote', 'ins', 'del', 'output', 'span', 'table', 'tbody', 'thead', 'tfoot', 'td', 'em', 'strong', 'small', 's', 'cite', 'q', 'dfn', 'abbr', 'time', 'code', 'var', 'samp', 'kbd', 'sub', 'sup', 'i', 'b', 'u', 'mark', 'ruby', 'rt', 'rp', 'bdi', 'bdo', 'br', 'wbr', 'th', 'tr' ]
|
|
15550
15589
|
} ];
|
|
15551
15590
|
lookupTable.evaluateRoleForElement = {
|
|
15552
|
-
A: function A(
|
|
15553
|
-
var node =
|
|
15591
|
+
A: function A(_ref44) {
|
|
15592
|
+
var node = _ref44.node, out = _ref44.out;
|
|
15554
15593
|
if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
|
|
15555
15594
|
return true;
|
|
15556
15595
|
}
|
|
@@ -15559,19 +15598,19 @@
|
|
|
15559
15598
|
}
|
|
15560
15599
|
return true;
|
|
15561
15600
|
},
|
|
15562
|
-
AREA: function AREA(
|
|
15563
|
-
var node =
|
|
15601
|
+
AREA: function AREA(_ref45) {
|
|
15602
|
+
var node = _ref45.node;
|
|
15564
15603
|
return !node.href;
|
|
15565
15604
|
},
|
|
15566
|
-
BUTTON: function BUTTON(
|
|
15567
|
-
var node =
|
|
15605
|
+
BUTTON: function BUTTON(_ref46) {
|
|
15606
|
+
var node = _ref46.node, role = _ref46.role, out = _ref46.out;
|
|
15568
15607
|
if (node.getAttribute('type') === 'menu') {
|
|
15569
15608
|
return role === 'menuitem';
|
|
15570
15609
|
}
|
|
15571
15610
|
return out;
|
|
15572
15611
|
},
|
|
15573
|
-
IMG: function IMG(
|
|
15574
|
-
var node =
|
|
15612
|
+
IMG: function IMG(_ref47) {
|
|
15613
|
+
var node = _ref47.node, role = _ref47.role, out = _ref47.out;
|
|
15575
15614
|
switch (node.alt) {
|
|
15576
15615
|
case null:
|
|
15577
15616
|
return out;
|
|
@@ -15583,8 +15622,8 @@
|
|
|
15583
15622
|
return role !== 'presentation' && role !== 'none';
|
|
15584
15623
|
}
|
|
15585
15624
|
},
|
|
15586
|
-
INPUT: function INPUT(
|
|
15587
|
-
var node =
|
|
15625
|
+
INPUT: function INPUT(_ref48) {
|
|
15626
|
+
var node = _ref48.node, role = _ref48.role, out = _ref48.out;
|
|
15588
15627
|
switch (node.type) {
|
|
15589
15628
|
case 'button':
|
|
15590
15629
|
case 'image':
|
|
@@ -15614,32 +15653,32 @@
|
|
|
15614
15653
|
return false;
|
|
15615
15654
|
}
|
|
15616
15655
|
},
|
|
15617
|
-
LI: function LI(
|
|
15618
|
-
var node =
|
|
15656
|
+
LI: function LI(_ref49) {
|
|
15657
|
+
var node = _ref49.node, out = _ref49.out;
|
|
15619
15658
|
var hasImplicitListitemRole = axe.utils.matchesSelector(node, 'ol li, ul li');
|
|
15620
15659
|
if (hasImplicitListitemRole) {
|
|
15621
15660
|
return out;
|
|
15622
15661
|
}
|
|
15623
15662
|
return true;
|
|
15624
15663
|
},
|
|
15625
|
-
MENU: function MENU(
|
|
15626
|
-
var node =
|
|
15664
|
+
MENU: function MENU(_ref50) {
|
|
15665
|
+
var node = _ref50.node;
|
|
15627
15666
|
if (node.getAttribute('type') === 'context') {
|
|
15628
15667
|
return false;
|
|
15629
15668
|
}
|
|
15630
15669
|
return true;
|
|
15631
15670
|
},
|
|
15632
|
-
OPTION: function OPTION(
|
|
15633
|
-
var node =
|
|
15671
|
+
OPTION: function OPTION(_ref51) {
|
|
15672
|
+
var node = _ref51.node;
|
|
15634
15673
|
var withinOptionList = axe.utils.matchesSelector(node, 'select > option, datalist > option, optgroup > option');
|
|
15635
15674
|
return !withinOptionList;
|
|
15636
15675
|
},
|
|
15637
|
-
SELECT: function SELECT(
|
|
15638
|
-
var node =
|
|
15676
|
+
SELECT: function SELECT(_ref52) {
|
|
15677
|
+
var node = _ref52.node, role = _ref52.role;
|
|
15639
15678
|
return !node.multiple && node.size <= 1 && role === 'menu';
|
|
15640
15679
|
},
|
|
15641
|
-
SVG: function SVG(
|
|
15642
|
-
var node =
|
|
15680
|
+
SVG: function SVG(_ref53) {
|
|
15681
|
+
var node = _ref53.node, out = _ref53.out;
|
|
15643
15682
|
if (node.parentNode && node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg') {
|
|
15644
15683
|
return true;
|
|
15645
15684
|
}
|
|
@@ -15767,10 +15806,36 @@
|
|
|
15767
15806
|
if (Array.isArray(options[role])) {
|
|
15768
15807
|
allowed = unique_array_default(options[role].concat(allowed));
|
|
15769
15808
|
}
|
|
15770
|
-
|
|
15809
|
+
var tableMap = cache_default.get('aria-allowed-attr-table');
|
|
15810
|
+
if (!tableMap) {
|
|
15811
|
+
tableMap = new WeakMap();
|
|
15812
|
+
cache_default.set('aria-allowed-attr-table', tableMap);
|
|
15813
|
+
}
|
|
15814
|
+
function validateRowAttrs() {
|
|
15815
|
+
if (virtualNode.parent && role === 'row') {
|
|
15816
|
+
var table5 = closest_default(virtualNode, 'table, [role="treegrid"], [role="table"], [role="grid"]');
|
|
15817
|
+
var tableRole = tableMap.get(table5);
|
|
15818
|
+
if (table5 && !tableRole) {
|
|
15819
|
+
tableRole = get_role_default(table5);
|
|
15820
|
+
tableMap.set(table5, tableRole);
|
|
15821
|
+
}
|
|
15822
|
+
if ([ 'table', 'grid' ].includes(tableRole) && role === 'row') {
|
|
15823
|
+
return true;
|
|
15824
|
+
}
|
|
15825
|
+
}
|
|
15826
|
+
}
|
|
15827
|
+
var ariaAttr = Array.isArray(options.validTreeRowAttrs) ? options.validTreeRowAttrs : [];
|
|
15828
|
+
var preChecks = {};
|
|
15829
|
+
ariaAttr.forEach(function(attr) {
|
|
15830
|
+
preChecks[attr] = validateRowAttrs;
|
|
15831
|
+
});
|
|
15832
|
+
if (allowed) {
|
|
15771
15833
|
for (var _i14 = 0; _i14 < attrs.length; _i14++) {
|
|
15834
|
+
var _preChecks$attrName;
|
|
15772
15835
|
var attrName = attrs[_i14];
|
|
15773
|
-
if (validate_attr_default(attrName) &&
|
|
15836
|
+
if (validate_attr_default(attrName) && (_preChecks$attrName = preChecks[attrName]) !== null && _preChecks$attrName !== void 0 && _preChecks$attrName.call(preChecks)) {
|
|
15837
|
+
invalid.push(attrName + '="' + virtualNode.attr(attrName) + '"');
|
|
15838
|
+
} else if (validate_attr_default(attrName) && !allowed.includes(attrName)) {
|
|
15774
15839
|
invalid.push(attrName + '="' + virtualNode.attr(attrName) + '"');
|
|
15775
15840
|
}
|
|
15776
15841
|
}
|
|
@@ -15827,6 +15892,13 @@
|
|
|
15827
15892
|
return void 0;
|
|
15828
15893
|
}
|
|
15829
15894
|
if (idref) {
|
|
15895
|
+
if (!is_visible_default(idref, true)) {
|
|
15896
|
+
this.data({
|
|
15897
|
+
messageKey: 'hidden',
|
|
15898
|
+
values: token_list_default(attr2)
|
|
15899
|
+
});
|
|
15900
|
+
return false;
|
|
15901
|
+
}
|
|
15830
15902
|
return idref.getAttribute('role') === 'alert' || idref.getAttribute('aria-live') === 'assertive' || idref.getAttribute('aria-live') === 'polite' || token_list_default(virtualNode.attr('aria-describedby')).indexOf(attr2) > -1;
|
|
15831
15903
|
}
|
|
15832
15904
|
return;
|
|
@@ -16936,7 +17008,7 @@
|
|
|
16936
17008
|
}
|
|
16937
17009
|
var get_background_stack_default = getBackgroundStack;
|
|
16938
17010
|
function getTextShadowColors(node) {
|
|
16939
|
-
var
|
|
17011
|
+
var _ref54 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref54.minRatio, maxRatio = _ref54.maxRatio;
|
|
16940
17012
|
var style = window.getComputedStyle(node);
|
|
16941
17013
|
var textShadow = style.getPropertyValue('text-shadow');
|
|
16942
17014
|
if (textShadow === 'none') {
|
|
@@ -16947,8 +17019,8 @@
|
|
|
16947
17019
|
assert_default(isNaN(fontSize) === false, 'Unable to determine font-size value '.concat(fontSizeStr));
|
|
16948
17020
|
var shadowColors = [];
|
|
16949
17021
|
var shadows = parseTextShadows(textShadow);
|
|
16950
|
-
shadows.forEach(function(
|
|
16951
|
-
var colorStr =
|
|
17022
|
+
shadows.forEach(function(_ref55) {
|
|
17023
|
+
var colorStr = _ref55.colorStr, pixels = _ref55.pixels;
|
|
16952
17024
|
colorStr = colorStr || style.getPropertyValue('color');
|
|
16953
17025
|
var _pixels = _slicedToArray(pixels, 3), offsetY = _pixels[0], offsetX = _pixels[1], _pixels$ = _pixels[2], blurRadius = _pixels$ === void 0 ? 0 : _pixels$;
|
|
16954
17026
|
if ((!minRatio || blurRadius >= fontSize * minRatio) && (!maxRatio || blurRadius < fontSize * maxRatio)) {
|
|
@@ -16998,8 +17070,8 @@
|
|
|
16998
17070
|
}
|
|
16999
17071
|
return shadows;
|
|
17000
17072
|
}
|
|
17001
|
-
function textShadowColor(
|
|
17002
|
-
var colorStr =
|
|
17073
|
+
function textShadowColor(_ref56) {
|
|
17074
|
+
var colorStr = _ref56.colorStr, offsetX = _ref56.offsetX, offsetY = _ref56.offsetY, blurRadius = _ref56.blurRadius, fontSize = _ref56.fontSize;
|
|
17003
17075
|
if (offsetX > blurRadius || offsetY > blurRadius) {
|
|
17004
17076
|
return new color_default(0, 0, 0, 0);
|
|
17005
17077
|
}
|
|
@@ -17167,7 +17239,7 @@
|
|
|
17167
17239
|
}
|
|
17168
17240
|
var ptSize = Math.ceil(fontSize * 72) / 96;
|
|
17169
17241
|
var isSmallFont = bold && ptSize < boldTextPt || !bold && ptSize < largeTextPt;
|
|
17170
|
-
var
|
|
17242
|
+
var _ref57 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref57.expected, minThreshold = _ref57.minThreshold, maxThreshold = _ref57.maxThreshold;
|
|
17171
17243
|
var isValid = contrast > expected;
|
|
17172
17244
|
if (typeof minThreshold === 'number' && contrast < minThreshold || typeof maxThreshold === 'number' && contrast > maxThreshold) {
|
|
17173
17245
|
return true;
|
|
@@ -17207,8 +17279,8 @@
|
|
|
17207
17279
|
}
|
|
17208
17280
|
return isValid;
|
|
17209
17281
|
}
|
|
17210
|
-
function findPseudoElement(vNode,
|
|
17211
|
-
var
|
|
17282
|
+
function findPseudoElement(vNode, _ref58) {
|
|
17283
|
+
var _ref58$pseudoSizeThre = _ref58.pseudoSizeThreshold, pseudoSizeThreshold = _ref58$pseudoSizeThre === void 0 ? .25 : _ref58$pseudoSizeThre, _ref58$ignorePseudo = _ref58.ignorePseudo, ignorePseudo = _ref58$ignorePseudo === void 0 ? false : _ref58$ignorePseudo;
|
|
17212
17284
|
if (ignorePseudo) {
|
|
17213
17285
|
return;
|
|
17214
17286
|
}
|
|
@@ -17250,7 +17322,7 @@
|
|
|
17250
17322
|
}
|
|
17251
17323
|
function parseUnit(str) {
|
|
17252
17324
|
var unitRegex = /^([0-9.]+)([a-z]+)$/i;
|
|
17253
|
-
var
|
|
17325
|
+
var _ref59 = str.match(unitRegex) || [], _ref60 = _slicedToArray(_ref59, 3), _ref60$ = _ref60[1], value = _ref60$ === void 0 ? '' : _ref60$, _ref60$2 = _ref60[2], unit = _ref60$2 === void 0 ? '' : _ref60$2;
|
|
17254
17326
|
return {
|
|
17255
17327
|
value: parseFloat(value),
|
|
17256
17328
|
unit: unit.toLowerCase()
|
|
@@ -17493,14 +17565,14 @@
|
|
|
17493
17565
|
}
|
|
17494
17566
|
function getHeadingOrder(results) {
|
|
17495
17567
|
results = _toConsumableArray(results);
|
|
17496
|
-
results.sort(function(
|
|
17497
|
-
var nodeA =
|
|
17498
|
-
var nodeB =
|
|
17568
|
+
results.sort(function(_ref61, _ref62) {
|
|
17569
|
+
var nodeA = _ref61.node;
|
|
17570
|
+
var nodeB = _ref62.node;
|
|
17499
17571
|
return nodeA.ancestry.length - nodeB.ancestry.length;
|
|
17500
17572
|
});
|
|
17501
17573
|
var headingOrder = results.reduce(mergeHeadingOrder, []);
|
|
17502
|
-
return headingOrder.filter(function(
|
|
17503
|
-
var level =
|
|
17574
|
+
return headingOrder.filter(function(_ref63) {
|
|
17575
|
+
var level = _ref63.level;
|
|
17504
17576
|
return level !== -1;
|
|
17505
17577
|
});
|
|
17506
17578
|
}
|
|
@@ -17551,7 +17623,7 @@
|
|
|
17551
17623
|
var headingRole = role && role.includes('heading');
|
|
17552
17624
|
var ariaHeadingLevel = vNode.attr('aria-level');
|
|
17553
17625
|
var ariaLevel = parseInt(ariaHeadingLevel, 10);
|
|
17554
|
-
var
|
|
17626
|
+
var _ref64 = vNode.props.nodeName.match(/h(\d)/) || [], _ref65 = _slicedToArray(_ref64, 2), headingLevel = _ref65[1];
|
|
17555
17627
|
if (!headingRole) {
|
|
17556
17628
|
return -1;
|
|
17557
17629
|
}
|
|
@@ -17617,8 +17689,8 @@
|
|
|
17617
17689
|
if (results.length < 2) {
|
|
17618
17690
|
return results;
|
|
17619
17691
|
}
|
|
17620
|
-
var incompleteResults = results.filter(function(
|
|
17621
|
-
var result =
|
|
17692
|
+
var incompleteResults = results.filter(function(_ref66) {
|
|
17693
|
+
var result = _ref66.result;
|
|
17622
17694
|
return result !== void 0;
|
|
17623
17695
|
});
|
|
17624
17696
|
var uniqueResults = [];
|
|
@@ -17630,12 +17702,12 @@
|
|
|
17630
17702
|
if (nameMap[name]) {
|
|
17631
17703
|
return 'continue';
|
|
17632
17704
|
}
|
|
17633
|
-
var sameNameResults = incompleteResults.filter(function(
|
|
17634
|
-
var data2 =
|
|
17705
|
+
var sameNameResults = incompleteResults.filter(function(_ref67, resultNum) {
|
|
17706
|
+
var data2 = _ref67.data;
|
|
17635
17707
|
return data2.name === name && resultNum !== index;
|
|
17636
17708
|
});
|
|
17637
|
-
var isSameUrl = sameNameResults.every(function(
|
|
17638
|
-
var data2 =
|
|
17709
|
+
var isSameUrl = sameNameResults.every(function(_ref68) {
|
|
17710
|
+
var data2 = _ref68.data;
|
|
17639
17711
|
return isIdenticalObject(data2.urlProps, urlProps);
|
|
17640
17712
|
});
|
|
17641
17713
|
if (sameNameResults.length && !isSameUrl) {
|
|
@@ -17765,7 +17837,7 @@
|
|
|
17765
17837
|
function internalLinkPresentEvaluate(node, options, virtualNode) {
|
|
17766
17838
|
var links = query_selector_all_default(virtualNode, 'a[href]');
|
|
17767
17839
|
return links.some(function(vLink) {
|
|
17768
|
-
return /^#[^/!]/.test(vLink.
|
|
17840
|
+
return /^#[^/!]/.test(vLink.attr('href'));
|
|
17769
17841
|
});
|
|
17770
17842
|
}
|
|
17771
17843
|
var internal_link_present_evaluate_default = internalLinkPresentEvaluate;
|
|
@@ -17881,8 +17953,8 @@
|
|
|
17881
17953
|
} else if (node !== document.body && has_content_default(node, true)) {
|
|
17882
17954
|
return [ virtualNode ];
|
|
17883
17955
|
} else {
|
|
17884
|
-
return virtualNode.children.filter(function(
|
|
17885
|
-
var actualNode =
|
|
17956
|
+
return virtualNode.children.filter(function(_ref69) {
|
|
17957
|
+
var actualNode = _ref69.actualNode;
|
|
17886
17958
|
return actualNode.nodeType === 1;
|
|
17887
17959
|
}).map(function(vNode) {
|
|
17888
17960
|
return findRegionlessElms(vNode, options);
|
|
@@ -18065,8 +18137,8 @@
|
|
|
18065
18137
|
if (!virtualNode.children) {
|
|
18066
18138
|
return void 0;
|
|
18067
18139
|
}
|
|
18068
|
-
var titleNode = virtualNode.children.find(function(
|
|
18069
|
-
var props =
|
|
18140
|
+
var titleNode = virtualNode.children.find(function(_ref70) {
|
|
18141
|
+
var props = _ref70.props;
|
|
18070
18142
|
return props.nodeName === 'title';
|
|
18071
18143
|
});
|
|
18072
18144
|
if (!titleNode) {
|
|
@@ -18089,8 +18161,8 @@
|
|
|
18089
18161
|
}
|
|
18090
18162
|
var svg_non_empty_title_evaluate_default = svgNonEmptyTitleEvaluate;
|
|
18091
18163
|
function cssOrientationLockEvaluate(node, options, virtualNode, context5) {
|
|
18092
|
-
var
|
|
18093
|
-
var
|
|
18164
|
+
var _ref71 = context5 || {}, _ref71$cssom = _ref71.cssom, cssom = _ref71$cssom === void 0 ? void 0 : _ref71$cssom;
|
|
18165
|
+
var _ref72 = options || {}, _ref72$degreeThreshol = _ref72.degreeThreshold, degreeThreshold = _ref72$degreeThreshol === void 0 ? 0 : _ref72$degreeThreshol;
|
|
18094
18166
|
if (!cssom || !cssom.length) {
|
|
18095
18167
|
return void 0;
|
|
18096
18168
|
}
|
|
@@ -18104,8 +18176,8 @@
|
|
|
18104
18176
|
if (!orientationRules.length) {
|
|
18105
18177
|
return 'continue';
|
|
18106
18178
|
}
|
|
18107
|
-
orientationRules.forEach(function(
|
|
18108
|
-
var cssRules =
|
|
18179
|
+
orientationRules.forEach(function(_ref73) {
|
|
18180
|
+
var cssRules = _ref73.cssRules;
|
|
18109
18181
|
Array.from(cssRules).forEach(function(cssRule) {
|
|
18110
18182
|
var locked = getIsOrientationLocked(cssRule);
|
|
18111
18183
|
if (locked && cssRule.selectorText.toUpperCase() !== 'HTML') {
|
|
@@ -18130,8 +18202,8 @@
|
|
|
18130
18202
|
}
|
|
18131
18203
|
return false;
|
|
18132
18204
|
function groupCssomByDocument(cssObjectModel) {
|
|
18133
|
-
return cssObjectModel.reduce(function(out,
|
|
18134
|
-
var sheet =
|
|
18205
|
+
return cssObjectModel.reduce(function(out, _ref74) {
|
|
18206
|
+
var sheet = _ref74.sheet, root = _ref74.root, shadowId = _ref74.shadowId;
|
|
18135
18207
|
var key = shadowId ? shadowId : 'topDocument';
|
|
18136
18208
|
if (!out[key]) {
|
|
18137
18209
|
out[key] = {
|
|
@@ -18147,15 +18219,15 @@
|
|
|
18147
18219
|
return out;
|
|
18148
18220
|
}, {});
|
|
18149
18221
|
}
|
|
18150
|
-
function isMediaRuleWithOrientation(
|
|
18151
|
-
var type =
|
|
18222
|
+
function isMediaRuleWithOrientation(_ref75) {
|
|
18223
|
+
var type = _ref75.type, cssText = _ref75.cssText;
|
|
18152
18224
|
if (type !== 4) {
|
|
18153
18225
|
return false;
|
|
18154
18226
|
}
|
|
18155
18227
|
return /orientation:\s*landscape/i.test(cssText) || /orientation:\s*portrait/i.test(cssText);
|
|
18156
18228
|
}
|
|
18157
|
-
function getIsOrientationLocked(
|
|
18158
|
-
var selectorText =
|
|
18229
|
+
function getIsOrientationLocked(_ref76) {
|
|
18230
|
+
var selectorText = _ref76.selectorText, style = _ref76.style;
|
|
18159
18231
|
if (!selectorText || style.length <= 0) {
|
|
18160
18232
|
return false;
|
|
18161
18233
|
}
|
|
@@ -18202,7 +18274,7 @@
|
|
|
18202
18274
|
}
|
|
18203
18275
|
}
|
|
18204
18276
|
function getAngleInDegrees(angleWithUnit) {
|
|
18205
|
-
var
|
|
18277
|
+
var _ref77 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref78 = _slicedToArray(_ref77, 1), unit = _ref78[0];
|
|
18206
18278
|
if (!unit) {
|
|
18207
18279
|
return;
|
|
18208
18280
|
}
|
|
@@ -18251,7 +18323,7 @@
|
|
|
18251
18323
|
}
|
|
18252
18324
|
var css_orientation_lock_evaluate_default = cssOrientationLockEvaluate;
|
|
18253
18325
|
function metaViewportScaleEvaluate(node, options, virtualNode) {
|
|
18254
|
-
var
|
|
18326
|
+
var _ref79 = options || {}, _ref79$scaleMinimum = _ref79.scaleMinimum, scaleMinimum = _ref79$scaleMinimum === void 0 ? 2 : _ref79$scaleMinimum, _ref79$lowerBound = _ref79.lowerBound, lowerBound = _ref79$lowerBound === void 0 ? false : _ref79$lowerBound;
|
|
18255
18327
|
var content = virtualNode.attr('content') || '';
|
|
18256
18328
|
if (!content) {
|
|
18257
18329
|
return true;
|
|
@@ -18367,8 +18439,8 @@
|
|
|
18367
18439
|
if (!tabbableElements || !tabbableElements.length) {
|
|
18368
18440
|
return true;
|
|
18369
18441
|
}
|
|
18370
|
-
var relatedNodes = tabbableElements.reduce(function(out,
|
|
18371
|
-
var el =
|
|
18442
|
+
var relatedNodes = tabbableElements.reduce(function(out, _ref80) {
|
|
18443
|
+
var el = _ref80.actualNode;
|
|
18372
18444
|
var nodeName2 = el.nodeName.toUpperCase();
|
|
18373
18445
|
if (elementsThatCanBeDisabled.includes(nodeName2)) {
|
|
18374
18446
|
out.push(el);
|
|
@@ -18407,8 +18479,8 @@
|
|
|
18407
18479
|
}
|
|
18408
18480
|
var focusable_element_evaluate_default = focusableElementEvaluate;
|
|
18409
18481
|
function focusableModalOpenEvaluate(node, options, virtualNode) {
|
|
18410
|
-
var tabbableElements = virtualNode.tabbableElements.map(function(
|
|
18411
|
-
var actualNode =
|
|
18482
|
+
var tabbableElements = virtualNode.tabbableElements.map(function(_ref81) {
|
|
18483
|
+
var actualNode = _ref81.actualNode;
|
|
18412
18484
|
return actualNode;
|
|
18413
18485
|
});
|
|
18414
18486
|
if (!tabbableElements || !tabbableElements.length) {
|
|
@@ -18440,8 +18512,8 @@
|
|
|
18440
18512
|
if (!tabbableElements || !tabbableElements.length) {
|
|
18441
18513
|
return true;
|
|
18442
18514
|
}
|
|
18443
|
-
var relatedNodes = tabbableElements.reduce(function(out,
|
|
18444
|
-
var el =
|
|
18515
|
+
var relatedNodes = tabbableElements.reduce(function(out, _ref82) {
|
|
18516
|
+
var el = _ref82.actualNode;
|
|
18445
18517
|
var nodeName2 = el.nodeName.toUpperCase();
|
|
18446
18518
|
if (!elementsThatCanBeDisabled.includes(nodeName2)) {
|
|
18447
18519
|
out.push(el);
|
|
@@ -18623,7 +18695,7 @@
|
|
|
18623
18695
|
return sanitize_default(noUnicodeStr);
|
|
18624
18696
|
}
|
|
18625
18697
|
function labelContentNameMismatchEvaluate(node, options, virtualNode) {
|
|
18626
|
-
var
|
|
18698
|
+
var _ref83 = options || {}, pixelThreshold = _ref83.pixelThreshold, occuranceThreshold = _ref83.occuranceThreshold;
|
|
18627
18699
|
var accText = accessible_text_default(node).toLowerCase();
|
|
18628
18700
|
if (is_human_interpretable_default(accText) < 1) {
|
|
18629
18701
|
return void 0;
|
|
@@ -19373,7 +19445,7 @@
|
|
|
19373
19445
|
if (!role || [ 'none', 'presentation' ].includes(role)) {
|
|
19374
19446
|
return true;
|
|
19375
19447
|
}
|
|
19376
|
-
var
|
|
19448
|
+
var _ref84 = aria_roles_default[role] || {}, accessibleNameRequired = _ref84.accessibleNameRequired;
|
|
19377
19449
|
if (accessibleNameRequired || is_focusable_default(virtualNode)) {
|
|
19378
19450
|
return true;
|
|
19379
19451
|
}
|
|
@@ -20604,8 +20676,8 @@
|
|
|
20604
20676
|
});
|
|
20605
20677
|
};
|
|
20606
20678
|
}
|
|
20607
|
-
function getHelpUrl(
|
|
20608
|
-
var brand =
|
|
20679
|
+
function getHelpUrl(_ref85, ruleId, version) {
|
|
20680
|
+
var brand = _ref85.brand, application = _ref85.application, lang = _ref85.lang;
|
|
20609
20681
|
return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');
|
|
20610
20682
|
}
|
|
20611
20683
|
var audit_default = Audit;
|
|
@@ -21013,14 +21085,14 @@
|
|
|
21013
21085
|
nodeResult.failureSummary = failure_summary_default(nodeResult);
|
|
21014
21086
|
});
|
|
21015
21087
|
});
|
|
21016
|
-
return _extends({},
|
|
21088
|
+
return _extends({}, _getEnvironmentData(), results, {
|
|
21017
21089
|
toolOptions: options
|
|
21018
21090
|
});
|
|
21019
21091
|
}
|
|
21020
21092
|
var run_virtual_rule_default = runVirtualRule;
|
|
21021
|
-
function normalizeRunParams(
|
|
21022
|
-
var
|
|
21023
|
-
var
|
|
21093
|
+
function normalizeRunParams(_ref86) {
|
|
21094
|
+
var _ref88, _options$reporter, _axe$_audit;
|
|
21095
|
+
var _ref87 = _slicedToArray(_ref86, 3), context5 = _ref87[0], options = _ref87[1], callback = _ref87[2];
|
|
21024
21096
|
var typeErr = new TypeError('axe.run arguments are invalid');
|
|
21025
21097
|
if (!isContext(context5)) {
|
|
21026
21098
|
if (callback !== void 0) {
|
|
@@ -21041,7 +21113,7 @@
|
|
|
21041
21113
|
throw typeErr;
|
|
21042
21114
|
}
|
|
21043
21115
|
options = clone_default(options);
|
|
21044
|
-
options.reporter = (
|
|
21116
|
+
options.reporter = (_ref88 = (_options$reporter = options.reporter) !== null && _options$reporter !== void 0 ? _options$reporter : (_axe$_audit = axe._audit) === null || _axe$_audit === void 0 ? void 0 : _axe$_audit.reporter) !== null && _ref88 !== void 0 ? _ref88 : 'v1';
|
|
21045
21117
|
return {
|
|
21046
21118
|
context: context5,
|
|
21047
21119
|
options: options,
|
|
@@ -21166,32 +21238,37 @@
|
|
|
21166
21238
|
return new Promise(function(res, rej) {
|
|
21167
21239
|
axe._audit.run(contextObj, options, res, rej);
|
|
21168
21240
|
}).then(function(results) {
|
|
21169
|
-
results = results.map(function(
|
|
21170
|
-
var nodes =
|
|
21241
|
+
results = results.map(function(_ref89) {
|
|
21242
|
+
var nodes = _ref89.nodes, result = _objectWithoutProperties(_ref89, _excluded8);
|
|
21171
21243
|
return _extends({
|
|
21172
21244
|
nodes: nodes.map(serializeNode)
|
|
21173
21245
|
}, result);
|
|
21174
21246
|
});
|
|
21175
|
-
var frames = contextObj.frames.map(function(
|
|
21176
|
-
var node =
|
|
21247
|
+
var frames = contextObj.frames.map(function(_ref90) {
|
|
21248
|
+
var node = _ref90.node;
|
|
21177
21249
|
return new dq_element_default(node, options).toJSON();
|
|
21178
21250
|
});
|
|
21251
|
+
var environmentData;
|
|
21252
|
+
if (contextObj.initiator) {
|
|
21253
|
+
environmentData = _getEnvironmentData();
|
|
21254
|
+
}
|
|
21179
21255
|
return {
|
|
21180
21256
|
results: results,
|
|
21181
|
-
frames: frames
|
|
21257
|
+
frames: frames,
|
|
21258
|
+
environmentData: environmentData
|
|
21182
21259
|
};
|
|
21183
21260
|
})['finally'](function() {
|
|
21184
21261
|
axe._running = false;
|
|
21185
21262
|
teardown_default();
|
|
21186
21263
|
});
|
|
21187
21264
|
}
|
|
21188
|
-
function serializeNode(
|
|
21189
|
-
var node =
|
|
21265
|
+
function serializeNode(_ref91) {
|
|
21266
|
+
var node = _ref91.node, nodeResult = _objectWithoutProperties(_ref91, _excluded9);
|
|
21190
21267
|
nodeResult.node = node.toJSON();
|
|
21191
21268
|
for (var _i28 = 0, _arr2 = [ 'any', 'all', 'none' ]; _i28 < _arr2.length; _i28++) {
|
|
21192
21269
|
var type = _arr2[_i28];
|
|
21193
|
-
nodeResult[type] = nodeResult[type].map(function(
|
|
21194
|
-
var relatedNodes =
|
|
21270
|
+
nodeResult[type] = nodeResult[type].map(function(_ref92) {
|
|
21271
|
+
var relatedNodes = _ref92.relatedNodes, checkResult = _objectWithoutProperties(_ref92, _excluded10);
|
|
21195
21272
|
return _extends({}, checkResult, {
|
|
21196
21273
|
relatedNodes: relatedNodes.map(function(node2) {
|
|
21197
21274
|
return node2.toJSON();
|
|
@@ -21202,17 +21279,22 @@
|
|
|
21202
21279
|
return nodeResult;
|
|
21203
21280
|
}
|
|
21204
21281
|
function finishRun(partialResults) {
|
|
21205
|
-
var
|
|
21282
|
+
var _ref94, _options$reporter2, _axe$_audit2;
|
|
21206
21283
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
21207
21284
|
options = clone_default(options);
|
|
21285
|
+
var _ref93 = partialResults.find(function(r) {
|
|
21286
|
+
return r.environmentData;
|
|
21287
|
+
}) || {}, environmentData = _ref93.environmentData;
|
|
21208
21288
|
axe._audit.normalizeOptions(options);
|
|
21209
|
-
options.reporter = (
|
|
21289
|
+
options.reporter = (_ref94 = (_options$reporter2 = options.reporter) !== null && _options$reporter2 !== void 0 ? _options$reporter2 : (_axe$_audit2 = axe._audit) === null || _axe$_audit2 === void 0 ? void 0 : _axe$_audit2.reporter) !== null && _ref94 !== void 0 ? _ref94 : 'v1';
|
|
21210
21290
|
setFrameSpec(partialResults);
|
|
21211
21291
|
var results = merge_results_default(partialResults);
|
|
21212
21292
|
results = axe._audit.after(results, options);
|
|
21213
21293
|
results.forEach(publish_metadata_default);
|
|
21214
21294
|
results = results.map(finalize_result_default);
|
|
21215
|
-
return createReport2(results,
|
|
21295
|
+
return createReport2(results, _extends({
|
|
21296
|
+
environmentData: environmentData
|
|
21297
|
+
}, options));
|
|
21216
21298
|
}
|
|
21217
21299
|
function setFrameSpec(partialResults) {
|
|
21218
21300
|
var frameStack = [];
|
|
@@ -21234,8 +21316,8 @@
|
|
|
21234
21316
|
_iterator4.f();
|
|
21235
21317
|
}
|
|
21236
21318
|
}
|
|
21237
|
-
function getMergedFrameSpecs(
|
|
21238
|
-
var childFrameSpecs =
|
|
21319
|
+
function getMergedFrameSpecs(_ref95) {
|
|
21320
|
+
var childFrameSpecs = _ref95.frames, parentFrameSpec = _ref95.frameSpec;
|
|
21239
21321
|
if (!parentFrameSpec) {
|
|
21240
21322
|
return childFrameSpecs;
|
|
21241
21323
|
}
|
|
@@ -21264,14 +21346,10 @@
|
|
|
21264
21346
|
callback = options;
|
|
21265
21347
|
options = {};
|
|
21266
21348
|
}
|
|
21267
|
-
var
|
|
21268
|
-
callback(_extends({},
|
|
21269
|
-
toolOptions:
|
|
21270
|
-
|
|
21271
|
-
passes: out.passes,
|
|
21272
|
-
incomplete: out.incomplete,
|
|
21273
|
-
inapplicable: out.inapplicable
|
|
21274
|
-
}));
|
|
21349
|
+
var _options2 = options, environmentData = _options2.environmentData, toolOptions = _objectWithoutProperties(_options2, _excluded11);
|
|
21350
|
+
callback(_extends({}, _getEnvironmentData(environmentData), {
|
|
21351
|
+
toolOptions: toolOptions
|
|
21352
|
+
}, process_aggregate_default(results, options)));
|
|
21275
21353
|
};
|
|
21276
21354
|
var na_default = naReporter;
|
|
21277
21355
|
var noPassesReporter = function noPassesReporter(results, options, callback) {
|
|
@@ -21279,11 +21357,12 @@
|
|
|
21279
21357
|
callback = options;
|
|
21280
21358
|
options = {};
|
|
21281
21359
|
}
|
|
21360
|
+
var _options3 = options, environmentData = _options3.environmentData, toolOptions = _objectWithoutProperties(_options3, _excluded12);
|
|
21282
21361
|
options.resultTypes = [ 'violations' ];
|
|
21283
|
-
var
|
|
21284
|
-
callback(_extends({},
|
|
21285
|
-
toolOptions:
|
|
21286
|
-
violations:
|
|
21362
|
+
var _process_aggregate_de = process_aggregate_default(results, options), violations = _process_aggregate_de.violations;
|
|
21363
|
+
callback(_extends({}, _getEnvironmentData(environmentData), {
|
|
21364
|
+
toolOptions: toolOptions,
|
|
21365
|
+
violations: violations
|
|
21287
21366
|
}));
|
|
21288
21367
|
};
|
|
21289
21368
|
var no_passes_default = noPassesReporter;
|
|
@@ -21301,9 +21380,9 @@
|
|
|
21301
21380
|
for (var _i29 = 0, _types = types; _i29 < _types.length; _i29++) {
|
|
21302
21381
|
var type = _types[_i29];
|
|
21303
21382
|
if (transformedResult[type] && Array.isArray(transformedResult[type])) {
|
|
21304
|
-
transformedResult[type] = transformedResult[type].map(function(
|
|
21383
|
+
transformedResult[type] = transformedResult[type].map(function(_ref96) {
|
|
21305
21384
|
var _node;
|
|
21306
|
-
var node =
|
|
21385
|
+
var node = _ref96.node, typeResult = _objectWithoutProperties(_ref96, _excluded13);
|
|
21307
21386
|
node = typeof ((_node = node) === null || _node === void 0 ? void 0 : _node.toJSON) === 'function' ? node.toJSON() : node;
|
|
21308
21387
|
return _extends({
|
|
21309
21388
|
node: node
|
|
@@ -21321,14 +21400,14 @@
|
|
|
21321
21400
|
callback = options;
|
|
21322
21401
|
options = {};
|
|
21323
21402
|
}
|
|
21324
|
-
|
|
21325
|
-
|
|
21403
|
+
var _options4 = options, environmentData = _options4.environmentData, toolOptions = _objectWithoutProperties(_options4, _excluded14);
|
|
21404
|
+
raw_default(results, toolOptions, function(raw3) {
|
|
21405
|
+
var env = _getEnvironmentData(environmentData);
|
|
21326
21406
|
callback({
|
|
21327
21407
|
raw: raw3,
|
|
21328
21408
|
env: env
|
|
21329
21409
|
});
|
|
21330
|
-
}
|
|
21331
|
-
raw_default(results, options, rawCallback);
|
|
21410
|
+
});
|
|
21332
21411
|
};
|
|
21333
21412
|
var raw_env_default = rawEnvReporter;
|
|
21334
21413
|
var v1Reporter = function v1Reporter(results, options, callback) {
|
|
@@ -21336,6 +21415,7 @@
|
|
|
21336
21415
|
callback = options;
|
|
21337
21416
|
options = {};
|
|
21338
21417
|
}
|
|
21418
|
+
var _options5 = options, environmentData = _options5.environmentData, toolOptions = _objectWithoutProperties(_options5, _excluded15);
|
|
21339
21419
|
var out = process_aggregate_default(results, options);
|
|
21340
21420
|
var addFailureSummaries = function addFailureSummaries(result) {
|
|
21341
21421
|
result.nodes.forEach(function(nodeResult) {
|
|
@@ -21344,13 +21424,9 @@
|
|
|
21344
21424
|
};
|
|
21345
21425
|
out.incomplete.forEach(addFailureSummaries);
|
|
21346
21426
|
out.violations.forEach(addFailureSummaries);
|
|
21347
|
-
callback(_extends({},
|
|
21348
|
-
toolOptions:
|
|
21349
|
-
|
|
21350
|
-
passes: out.passes,
|
|
21351
|
-
incomplete: out.incomplete,
|
|
21352
|
-
inapplicable: out.inapplicable
|
|
21353
|
-
}));
|
|
21427
|
+
callback(_extends({}, _getEnvironmentData(environmentData), {
|
|
21428
|
+
toolOptions: toolOptions
|
|
21429
|
+
}, out));
|
|
21354
21430
|
};
|
|
21355
21431
|
var v1_default = v1Reporter;
|
|
21356
21432
|
var v2Reporter = function v2Reporter(results, options, callback) {
|
|
@@ -21358,14 +21434,11 @@
|
|
|
21358
21434
|
callback = options;
|
|
21359
21435
|
options = {};
|
|
21360
21436
|
}
|
|
21437
|
+
var _options6 = options, environmentData = _options6.environmentData, toolOptions = _objectWithoutProperties(_options6, _excluded16);
|
|
21361
21438
|
var out = process_aggregate_default(results, options);
|
|
21362
|
-
callback(_extends({},
|
|
21363
|
-
toolOptions:
|
|
21364
|
-
|
|
21365
|
-
passes: out.passes,
|
|
21366
|
-
incomplete: out.incomplete,
|
|
21367
|
-
inapplicable: out.inapplicable
|
|
21368
|
-
}));
|
|
21439
|
+
callback(_extends({}, _getEnvironmentData(environmentData), {
|
|
21440
|
+
toolOptions: toolOptions
|
|
21441
|
+
}, out));
|
|
21369
21442
|
};
|
|
21370
21443
|
var v2_default = v2Reporter;
|
|
21371
21444
|
axe.constants = constants_default;
|
|
@@ -21384,6 +21457,9 @@
|
|
|
21384
21457
|
Rule: rule_default,
|
|
21385
21458
|
metadataFunctionMap: metadata_function_map_default
|
|
21386
21459
|
};
|
|
21460
|
+
axe._thisWillBeDeletedDoNotUse['public'] = {
|
|
21461
|
+
reporters: reporters
|
|
21462
|
+
};
|
|
21387
21463
|
axe.imports = imports_exports;
|
|
21388
21464
|
axe.cleanup = cleanup_default;
|
|
21389
21465
|
axe.configure = configure_default;
|
|
@@ -21843,7 +21919,8 @@
|
|
|
21843
21919
|
pass: 'aria-errormessage exists and references elements visible to screen readers that use a supported aria-errormessage technique',
|
|
21844
21920
|
fail: {
|
|
21845
21921
|
singular: 'aria-errormessage value `${data.values}` must use a technique to announce the message (e.g., aria-live, aria-describedby, role=alert, etc.)',
|
|
21846
|
-
plural: 'aria-errormessage values `${data.values}` must use a technique to announce the message (e.g., aria-live, aria-describedby, role=alert, etc.)'
|
|
21922
|
+
plural: 'aria-errormessage values `${data.values}` must use a technique to announce the message (e.g., aria-live, aria-describedby, role=alert, etc.)',
|
|
21923
|
+
hidden: 'aria-errormessage value `${data.values}` cannot reference a hidden element'
|
|
21847
21924
|
},
|
|
21848
21925
|
incomplete: {
|
|
21849
21926
|
singular: 'ensure aria-errormessage value `${data.values}` references an existing element',
|
|
@@ -22738,7 +22815,12 @@
|
|
|
22738
22815
|
tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
|
|
22739
22816
|
actIds: [ '5c01ea' ],
|
|
22740
22817
|
all: [],
|
|
22741
|
-
any: [
|
|
22818
|
+
any: [ {
|
|
22819
|
+
options: {
|
|
22820
|
+
validTreeRowAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-expanded', 'aria-level' ]
|
|
22821
|
+
},
|
|
22822
|
+
id: 'aria-allowed-attr'
|
|
22823
|
+
} ],
|
|
22742
22824
|
none: [ 'aria-unsupported-attr', {
|
|
22743
22825
|
options: {
|
|
22744
22826
|
elementsAllowedAriaLabel: [ 'applet', 'input' ]
|
|
@@ -23804,7 +23886,10 @@
|
|
|
23804
23886
|
evaluate: 'abstractrole-evaluate'
|
|
23805
23887
|
}, {
|
|
23806
23888
|
id: 'aria-allowed-attr',
|
|
23807
|
-
evaluate: 'aria-allowed-attr-evaluate'
|
|
23889
|
+
evaluate: 'aria-allowed-attr-evaluate',
|
|
23890
|
+
options: {
|
|
23891
|
+
validTreeRowAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-expanded', 'aria-level' ]
|
|
23892
|
+
}
|
|
23808
23893
|
}, {
|
|
23809
23894
|
id: 'aria-allowed-role',
|
|
23810
23895
|
evaluate: 'aria-allowed-role-evaluate',
|