axe-core 4.7.1 → 4.7.2

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/README.md CHANGED
@@ -157,6 +157,10 @@ Axe-core has a new minor release every 3 to 5 months, which usually introduces n
157
157
  - See [release and support](doc/release-and-support.md) for details on the frequency of releases, long-term support and recommendations on upgrading axe-core.
158
158
  - See [backward compatibility](doc/backwards-compatibility-doc.md) for details on the types of changes different releases may introduce.
159
159
 
160
+ ## Deque Trademarks Policy
161
+
162
+ DEQUE, DEQUELABS, AXE®, and AXE-CORE® are trademarks of Deque Systems, Inc. Use of the Deque trademarks must be in accordance with [Deque's trademark policy](https://www.deque.com/legal/trademarks/).
163
+
160
164
  ## Supported ARIA Roles and Attributes.
161
165
 
162
166
  Refer [axe-core ARIA support](./doc/aria-supported.md) for a complete list of ARIA supported roles and attributes by axe.
package/axe.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! axe v4.7.1
1
+ /*! axe v4.7.2
2
2
  * Copyright (c) 2023 Deque Systems, Inc.
3
3
  *
4
4
  * Your use of this Source Code Form is subject to the terms of the Mozilla Public
@@ -22,7 +22,7 @@
22
22
  }, _typeof(obj);
23
23
  }
24
24
  var axe = axe || {};
25
- axe.version = '4.7.1';
25
+ axe.version = '4.7.2';
26
26
  if (typeof define === 'function' && define.amd) {
27
27
  define('axe-core', [], function() {
28
28
  return axe;
@@ -6130,14 +6130,20 @@
6130
6130
  if (!window.Node) {
6131
6131
  return;
6132
6132
  }
6133
- nodes = nodes instanceof window.Node ? [ nodes ] : to_array_default(nodes);
6134
- if (!nodes.every(function(node) {
6135
- return node instanceof window.Node || node.actualNode;
6136
- })) {
6137
- return;
6133
+ if (nodes instanceof window.Node || nodes instanceof abstract_virtual_node_default) {
6134
+ nodes = [ nodes ];
6135
+ } else {
6136
+ nodes = to_array_default(nodes);
6138
6137
  }
6139
- checkResult.relatedNodes = nodes.map(function(element) {
6140
- return new dq_element_default(element, options);
6138
+ checkResult.relatedNodes = [];
6139
+ nodes.forEach(function(node) {
6140
+ if (node instanceof abstract_virtual_node_default) {
6141
+ node = node.actualNode;
6142
+ }
6143
+ if (node instanceof window.Node) {
6144
+ var dqElm = new dq_element_default(node, options);
6145
+ checkResult.relatedNodes.push(dqElm);
6146
+ }
6141
6147
  });
6142
6148
  }
6143
6149
  };
@@ -9299,7 +9305,7 @@
9299
9305
  slider: {
9300
9306
  type: 'widget',
9301
9307
  requiredAttrs: [ 'aria-valuenow' ],
9302
- allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-orientation', 'aria-readonly', 'aria-valuetext' ],
9308
+ allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-orientation', 'aria-readonly', 'aria-required', 'aria-valuetext' ],
9303
9309
  superclassRole: [ 'input', 'range' ],
9304
9310
  accessibleNameRequired: true,
9305
9311
  childrenPresentational: true
@@ -9337,7 +9343,7 @@
9337
9343
  switch: {
9338
9344
  type: 'widget',
9339
9345
  requiredAttrs: [ 'aria-checked' ],
9340
- allowedAttrs: [ 'aria-readonly' ],
9346
+ allowedAttrs: [ 'aria-readonly', 'aria-required' ],
9341
9347
  superclassRole: [ 'checkbox' ],
9342
9348
  accessibleNameRequired: true,
9343
9349
  nameFromContent: true,
@@ -28535,7 +28541,7 @@
28535
28541
  selector: '[aria-hidden="true"]',
28536
28542
  matches: 'aria-hidden-focus-matches',
28537
28543
  excludeHidden: false,
28538
- tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412' ],
28544
+ tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a' ],
28539
28545
  actIds: [ '6cfa84' ],
28540
28546
  all: [ 'focusable-modal-open', 'focusable-disabled', 'focusable-not-tabbable' ],
28541
28547
  any: [],
@@ -29012,7 +29018,7 @@
29012
29018
  id: 'frame-title-unique',
29013
29019
  selector: 'frame[title], iframe[title]',
29014
29020
  matches: 'frame-title-has-text-matches',
29015
- tags: [ 'cat.text-alternatives', 'wcag412', 'wcag2a', 'TTv5', 'TT12.c' ],
29021
+ tags: [ 'cat.text-alternatives', 'wcag412', 'wcag2a', 'TTv5', 'TT12.d' ],
29016
29022
  actIds: [ '4b1c6c' ],
29017
29023
  all: [],
29018
29024
  any: [],
@@ -29022,7 +29028,7 @@
29022
29028
  id: 'frame-title',
29023
29029
  selector: 'frame, iframe',
29024
29030
  matches: 'no-negative-tabindex-matches',
29025
- tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'section508', 'section508.22.i', 'TTv5', 'TT12.c' ],
29031
+ tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'section508', 'section508.22.i', 'TTv5', 'TT12.d' ],
29026
29032
  actIds: [ 'cae760' ],
29027
29033
  all: [],
29028
29034
  any: [ {
@@ -29367,7 +29373,7 @@
29367
29373
  id: 'meta-refresh',
29368
29374
  selector: 'meta[http-equiv="refresh"][content]',
29369
29375
  excludeHidden: false,
29370
- tags: [ 'cat.time-and-media', 'wcag2a', 'wcag221', 'TTv5', 'TT2.c' ],
29376
+ tags: [ 'cat.time-and-media', 'wcag2a', 'wcag221', 'TTv5', 'TT8.a' ],
29371
29377
  actIds: [ 'bc659a', 'bisz58' ],
29372
29378
  all: [],
29373
29379
  any: [ {
@@ -29411,7 +29417,7 @@
29411
29417
  }, {
29412
29418
  id: 'nested-interactive',
29413
29419
  matches: 'nested-interactive-matches',
29414
- tags: [ 'cat.keyboard', 'wcag2a', 'wcag412', 'TTv5', 'TT4.a' ],
29420
+ tags: [ 'cat.keyboard', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a' ],
29415
29421
  actIds: [ '307n5z' ],
29416
29422
  all: [],
29417
29423
  any: [ 'no-focusable-content' ],
@@ -29537,7 +29543,7 @@
29537
29543
  id: 'scrollable-region-focusable',
29538
29544
  selector: '*:not(select,textarea)',
29539
29545
  matches: 'scrollable-region-focusable-matches',
29540
- tags: [ 'cat.keyboard', 'wcag2a', 'wcag211' ],
29546
+ tags: [ 'cat.keyboard', 'wcag2a', 'wcag211', 'TTv5', 'TT4.a' ],
29541
29547
  actIds: [ '0ssw9k' ],
29542
29548
  all: [],
29543
29549
  any: [ 'focusable-content', 'focusable-element' ],
@@ -29558,7 +29564,7 @@
29558
29564
  }, {
29559
29565
  id: 'server-side-image-map',
29560
29566
  selector: 'img[ismap]',
29561
- tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag211', 'section508', 'section508.22.f' ],
29567
+ tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag211', 'section508', 'section508.22.f', 'TTv5', 'TT4.a' ],
29562
29568
  all: [],
29563
29569
  any: [],
29564
29570
  none: [ 'exists' ]
@@ -29637,7 +29643,7 @@
29637
29643
  id: 'td-headers-attr',
29638
29644
  selector: 'table',
29639
29645
  matches: 'table-or-grid-role-matches',
29640
- tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g' ],
29646
+ tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b' ],
29641
29647
  actIds: [ 'a25f45' ],
29642
29648
  all: [ 'td-headers-attr' ],
29643
29649
  any: [],