axe-core 4.4.3-canary.77afe90 → 4.4.3-canary.7828190

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.4.3-canary.77afe90
1
+ /*! axe v4.4.3-canary.7828190
2
2
  * Copyright (c) 2022 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.4.3-canary.77afe90';
25
+ axe.version = '4.4.3-canary.7828190';
26
26
  if (typeof define === 'function' && define.amd) {
27
27
  define('axe-core', [], function() {
28
28
  return axe;
@@ -19658,8 +19658,15 @@
19658
19658
  }
19659
19659
  var non_empty_if_present_evaluate_default = nonEmptyIfPresentEvaluate;
19660
19660
  function presentationalRoleEvaluate(node, options, virtualNode) {
19661
- var role = get_role_default(virtualNode);
19662
19661
  var explicitRole2 = get_explicit_role_default(virtualNode);
19662
+ if ([ 'presentation', 'none' ].includes(explicitRole2) && [ 'iframe', 'frame' ].includes(virtualNode.props.nodeName) && virtualNode.hasAttr('title')) {
19663
+ this.data({
19664
+ messageKey: 'iframe',
19665
+ nodeName: virtualNode.props.nodeName
19666
+ });
19667
+ return false;
19668
+ }
19669
+ var role = get_role_default(virtualNode);
19663
19670
  if ([ 'presentation', 'none' ].includes(role)) {
19664
19671
  this.data({
19665
19672
  role: role
@@ -23630,7 +23637,8 @@
23630
23637
  default: 'Element\'s default semantics were not overridden with role="none" or role="presentation"',
23631
23638
  globalAria: 'Element\'s role is not presentational because it has a global ARIA attribute',
23632
23639
  focusable: 'Element\'s role is not presentational because it is focusable',
23633
- both: 'Element\'s role is not presentational because it has a global ARIA attribute and is focusable'
23640
+ both: 'Element\'s role is not presentational because it has a global ARIA attribute and is focusable',
23641
+ iframe: 'Using the "title" attribute on an ${data.nodeName} element with a presentational role behaves inconsistently between screen readers'
23634
23642
  }
23635
23643
  }
23636
23644
  },