axe-core 4.10.2-canary.62388de → 4.10.2-canary.64d409d

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 CHANGED
@@ -1,4 +1,4 @@
1
- /*! axe v4.10.2-canary.62388de
1
+ /*! axe v4.10.2-canary.64d409d
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.2-canary.62388de';
25
+ axe.version = '4.10.2-canary.64d409d';
26
26
  if (typeof define === 'function' && define.amd) {
27
27
  define('axe-core', [], function() {
28
28
  return axe;
@@ -11255,7 +11255,7 @@
11255
11255
  superclassRole: [ 'composite' ]
11256
11256
  },
11257
11257
  tabpanel: {
11258
- type: 'widget',
11258
+ type: 'structure',
11259
11259
  allowedAttrs: [ 'aria-expanded' ],
11260
11260
  superclassRole: [ 'section' ],
11261
11261
  accessibleNameRequired: false
@@ -19507,8 +19507,14 @@
19507
19507
  }
19508
19508
  function preloadMedia(_ref74) {
19509
19509
  var _ref74$treeRoot = _ref74.treeRoot, treeRoot = _ref74$treeRoot === void 0 ? axe._tree[0] : _ref74$treeRoot;
19510
- var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref75) {
19510
+ var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video[autoplay], audio[autoplay]', function(_ref75) {
19511
19511
  var actualNode = _ref75.actualNode;
19512
+ if (actualNode.preload === 'none' && actualNode.readyState === 0 && actualNode.networkState !== actualNode.NETWORK_LOADING) {
19513
+ return false;
19514
+ }
19515
+ if (actualNode.hasAttribute('paused') || actualNode.hasAttribute('muted')) {
19516
+ return false;
19517
+ }
19512
19518
  if (actualNode.hasAttribute('src')) {
19513
19519
  return !!actualNode.getAttribute('src');
19514
19520
  }
@@ -24876,16 +24882,20 @@
24876
24882
  }
24877
24883
  var css_orientation_lock_evaluate_default = cssOrientationLockEvaluate;
24878
24884
  function noAutoplayAudioEvaluate(node, options) {
24885
+ var hasControls = node.hasAttribute('controls');
24886
+ if (node.hasAttribute('loop')) {
24887
+ return hasControls;
24888
+ }
24879
24889
  if (!node.duration) {
24880
24890
  console.warn('axe.utils.preloadMedia did not load metadata');
24881
24891
  return void 0;
24882
24892
  }
24883
24893
  var _options$allowedDurat = options.allowedDuration, allowedDuration = _options$allowedDurat === void 0 ? 3 : _options$allowedDurat;
24884
24894
  var playableDuration = getPlayableDuration(node);
24885
- if (playableDuration <= allowedDuration && !node.hasAttribute('loop')) {
24895
+ if (playableDuration <= allowedDuration) {
24886
24896
  return true;
24887
24897
  }
24888
- if (!node.hasAttribute('controls')) {
24898
+ if (!hasControls) {
24889
24899
  return false;
24890
24900
  }
24891
24901
  return true;
@@ -26120,7 +26130,8 @@
26120
26130
  navigation: true,
26121
26131
  region: true,
26122
26132
  search: false,
26123
- status: true
26133
+ status: true,
26134
+ tabpanel: true
26124
26135
  };
26125
26136
  function validScrollableTagName(node) {
26126
26137
  var nodeName2 = node.nodeName.toUpperCase();