axe-core 4.3.4 → 4.3.5-canary.9ec4700

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 CHANGED
@@ -2,6 +2,51 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [4.3.5-canary.9ec4700](https://github.com/dequelabs/axe-core/compare/v4.3.5...v4.3.5-canary.9ec4700) (2021-11-02)
6
+
7
+
8
+ ### Features
9
+
10
+ * **aria-allowed-attr:** report violations for non-global ARIA attributes on elements without a role ([#3102](https://github.com/dequelabs/axe-core/issues/3102)) ([87cfc0b](https://github.com/dequelabs/axe-core/commit/87cfc0b4f4d998a88a2d534438e4f2ccf9427a86))
11
+ * add new ARIA roles ([#3138](https://github.com/dequelabs/axe-core/issues/3138)) ([61be7e5](https://github.com/dequelabs/axe-core/commit/61be7e555152d89c6770679fd6fdac10038f7cd3))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **aria-allowed-attr:** check for invalid `aria-attributes` for `role="row"` ([#3160](https://github.com/dequelabs/axe-core/issues/3160)) ([cfa900d](https://github.com/dequelabs/axe-core/commit/cfa900d57265907b638dad36ba405a5b40dbde9c))
17
+ * **aria-allowed-attr:** revert violation for non-global ARIA attrs on element without role ([#3243](https://github.com/dequelabs/axe-core/issues/3243)) ([112b960](https://github.com/dequelabs/axe-core/commit/112b960ee95b6a6abfb38a15b7092d9847512f0f))
18
+ * **aria-allowed-children,aria-allowed-parent:** allow group role in listbox ([#3195](https://github.com/dequelabs/axe-core/issues/3195)) ([cb01975](https://github.com/dequelabs/axe-core/commit/cb019755d9cb52b997aae340f406ac26d0cf90e5))
19
+ * **aria-allowed-role:** Update allowed roles based on ARIA spec updates ([#3124](https://github.com/dequelabs/axe-core/issues/3124)) ([00f6efc](https://github.com/dequelabs/axe-core/commit/00f6efcd55eb0a4c56cc3ca1acc7c79e3d22f58d))
20
+ * **aria-allowed-role:** updates the allowed roles for the wbr element to none and presentation ([#3192](https://github.com/dequelabs/axe-core/issues/3192)) ([2f439b3](https://github.com/dequelabs/axe-core/commit/2f439b3fdb7e7fa3228e663c5313af0f08aa4327)), closes [#3177](https://github.com/dequelabs/axe-core/issues/3177)
21
+ * **aria-allowed-roles:** update role allowances for section element ([#3238](https://github.com/dequelabs/axe-core/issues/3238)) ([99676ec](https://github.com/dequelabs/axe-core/commit/99676ece547be39d71e776a5b9cae2da41c31572)), closes [#3237](https://github.com/dequelabs/axe-core/issues/3237)
22
+ * **aria-prohibited-attr:** update metadata message ([#3206](https://github.com/dequelabs/axe-core/issues/3206)) ([d1a768e](https://github.com/dequelabs/axe-core/commit/d1a768eaefe6d1c95e925174bc979bc7a95ee7d9))
23
+ * **autocomplete-valid:** Allow custom autocomplete attribute values ([#3225](https://github.com/dequelabs/axe-core/issues/3225)) ([6076ee8](https://github.com/dequelabs/axe-core/commit/6076ee8a7ba7527c9886916db1eda5d90cd26259))
24
+ * **axe.configure:** do not remove newline characters from locale doT strings ([#3216](https://github.com/dequelabs/axe-core/issues/3216)) ([ea2ce17](https://github.com/dequelabs/axe-core/commit/ea2ce171fd7562e6b85471e72dddc84be23a4297))
25
+ * **axe.run:** add option to increase iframe ping timeout ([#3233](https://github.com/dequelabs/axe-core/issues/3233)) ([ec937e3](https://github.com/dequelabs/axe-core/commit/ec937e3e147274cbdbba2b046a651c90623130e4))
26
+ * **color-contrast:** account for 0 width scroll regions with children ([#3172](https://github.com/dequelabs/axe-core/issues/3172)) ([5908f0d](https://github.com/dequelabs/axe-core/commit/5908f0d644c20e7091329bd8bbeb191837d27feb))
27
+ * **color-contrast:** account for elements that do not fill entire bounding size ([#3186](https://github.com/dequelabs/axe-core/issues/3186)) ([699697b](https://github.com/dequelabs/axe-core/commit/699697bc237b6c69050e4572ba5cfdc5f338f450))
28
+ * **color-contrast:** correctly apply page background color ([#3207](https://github.com/dequelabs/axe-core/issues/3207)) ([fbc581d](https://github.com/dequelabs/axe-core/commit/fbc581d77e457fe092ecc2b95015e667292f1a08))
29
+ * **color-contrast:** correctly compute color-contrast of truncated children ([#3203](https://github.com/dequelabs/axe-core/issues/3203)) ([ac7b2b5](https://github.com/dequelabs/axe-core/commit/ac7b2b5ec402e9de91c50ef39aefd5843f0d62bb))
30
+ * **color-contrast:** correctly handle nested scroll regions ([#3212](https://github.com/dequelabs/axe-core/issues/3212)) ([22db29c](https://github.com/dequelabs/axe-core/commit/22db29ca7e9964a8447392fba45a09057a926ab9))
31
+ * **color-contrast:** correctly work with positioned elements without z-index ([#3209](https://github.com/dequelabs/axe-core/issues/3209)) ([725a20c](https://github.com/dequelabs/axe-core/commit/725a20c91b9006e64009059f0ab9d1a0098d29df))
32
+ * **color-contrast:** properly blend multiple alpha colors ([#3193](https://github.com/dequelabs/axe-core/issues/3193)) ([e930a70](https://github.com/dequelabs/axe-core/commit/e930a7081d4308549370f74e9d341badd9661584))
33
+ * **d.ts:** Add PartialResults type ([#3126](https://github.com/dequelabs/axe-core/issues/3126)) ([544b6d5](https://github.com/dequelabs/axe-core/commit/544b6d579f3eecf8e102a53a911bbce0bd53b74f))
34
+ * **is-visible:** do not error if window.Node does not exist ([#3168](https://github.com/dequelabs/axe-core/issues/3168)) ([4046087](https://github.com/dequelabs/axe-core/commit/404608773abf7b4d069a64931adf4ac7e942b663))
35
+ * check for hidden elements on `aria-errormessage` ([#3156](https://github.com/dequelabs/axe-core/issues/3156)) ([95d37dd](https://github.com/dequelabs/axe-core/commit/95d37dd794dc8552d731fabf45244b260da53d8f))
36
+ * **label-title-only:** allow hidden labels ([#3183](https://github.com/dequelabs/axe-core/issues/3183)) ([cad3994](https://github.com/dequelabs/axe-core/commit/cad39949c29bc3f83863e3484feef82e89e12118))
37
+ * **nativeSelectValue:** update selected value on change ([#3154](https://github.com/dequelabs/axe-core/issues/3154)) ([1ee88cb](https://github.com/dequelabs/axe-core/commit/1ee88cb4bb557560f10eab136464c321d4dee81e))
38
+ * **p-as-heading:** `p-as-heading` rule to account for `textContent` length ([#3145](https://github.com/dequelabs/axe-core/issues/3145)) ([400a230](https://github.com/dequelabs/axe-core/commit/400a2308510246d64d37fac3db375201610cd7e7))
39
+ * **reporter:** Run inside isolated contexts ([#3129](https://github.com/dequelabs/axe-core/issues/3129)) ([afe6675](https://github.com/dequelabs/axe-core/commit/afe6675d2452089602dcc6c9e931987936e9a55a))
40
+ * **typescript:** allow passing a NodeList to ElementContext ([#3161](https://github.com/dequelabs/axe-core/issues/3161)) ([ad4b165](https://github.com/dequelabs/axe-core/commit/ad4b165a0e019cd65f70fa5d085d83cea3e7338c))
41
+ * greater consistency of help / description text ([#3204](https://github.com/dequelabs/axe-core/issues/3204)) ([0677565](https://github.com/dequelabs/axe-core/commit/0677565941486cf339e7267760d4e533d4a29a05))
42
+ * Separate Level AAA rules from A and best-practices ([#3191](https://github.com/dequelabs/axe-core/issues/3191)) ([828e526](https://github.com/dequelabs/axe-core/commit/828e526fd06ee596df73f4825e750aad459ca75e))
43
+
44
+ ### [4.3.5](https://github.com/dequelabs/axe-core/compare/v4.3.4...v4.3.5) (2021-10-29)
45
+
46
+ ### Bug Fixes
47
+
48
+ - **aria-allowed-attr:** revert violation for non-global ARIA attrs on element without role ([#3243](https://github.com/dequelabs/axe-core/issues/3243)) ([e138fd6](https://github.com/dequelabs/axe-core/commit/e138fd6a00a8da6c48a74a614adc5dae8f2044e1))
49
+
5
50
  ### [4.3.4](https://github.com/dequelabs/axe-core/compare/v4.3.3...v4.3.4) (2021-10-22)
6
51
 
7
52
  ### Bug Fixes
package/axe.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! axe v4.3.4
1
+ /*! axe v4.3.5-canary.9ec4700
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.4';
30
+ axe.version = '4.3.5-canary.9ec4700';
31
31
  if (typeof define === 'function' && define.amd) {
32
32
  define('axe-core', [], function() {
33
33
  return axe;
@@ -8474,6 +8474,11 @@
8474
8474
  allowedAttrs: [ 'aria-expanded' ],
8475
8475
  superclassRole: [ 'landmark' ]
8476
8476
  },
8477
+ comment: {
8478
+ type: 'structure',
8479
+ allowedAttrs: [ 'aria-level', 'aria-posinset', 'aria-setsize' ],
8480
+ superclassRole: [ 'article' ]
8481
+ },
8477
8482
  definition: {
8478
8483
  type: 'structure',
8479
8484
  allowedAttrs: [ 'aria-expanded' ],
@@ -8664,6 +8669,11 @@
8664
8669
  accessibleNameRequired: true,
8665
8670
  childrenPresentational: true
8666
8671
  },
8672
+ mark: {
8673
+ type: 'structure',
8674
+ superclassRole: [ 'section' ],
8675
+ prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]
8676
+ },
8667
8677
  navigation: {
8668
8678
  type: 'landmark',
8669
8679
  allowedAttrs: [ 'aria-expanded' ],
@@ -8843,6 +8853,12 @@
8843
8853
  nameFromContent: true,
8844
8854
  childrenPresentational: true
8845
8855
  },
8856
+ suggestion: {
8857
+ type: 'structure',
8858
+ requiredOwned: [ 'insertion', 'deletion' ],
8859
+ superclassRole: [ 'section' ],
8860
+ prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]
8861
+ },
8846
8862
  tab: {
8847
8863
  type: 'widget',
8848
8864
  requiredContext: [ 'tablist' ],
@@ -9717,7 +9733,7 @@
9717
9733
  },
9718
9734
  section: {
9719
9735
  contentTypes: [ 'sectioning', 'flow' ],
9720
- allowedRoles: [ 'alert', 'alertdialog', 'application', 'banner', 'complementary', 'contentinfo', 'dialog', 'document', 'feed', 'log', 'main', 'marquee', 'navigation', 'none', 'note', 'presentation', 'search', 'status', 'tabpanel', 'doc-abstract', 'doc-acknowledgments', 'doc-afterword', 'doc-appendix', 'doc-bibliography', 'doc-chapter', 'doc-colophon', 'doc-conclusion', 'doc-credit', 'doc-credits', 'doc-dedication', 'doc-endnotes', 'doc-epigraph', 'doc-epilogue', 'doc-errata', 'doc-example', 'doc-foreword', 'doc-glossary', 'doc-index', 'doc-introduction', 'doc-notice', 'doc-pagelist', 'doc-part', 'doc-preface', 'doc-prologue', 'doc-pullquote', 'doc-qna', 'doc-toc' ],
9736
+ allowedRoles: [ 'alert', 'alertdialog', 'application', 'banner', 'complementary', 'contentinfo', 'dialog', 'document', 'feed', 'group', 'log', 'main', 'marquee', 'navigation', 'none', 'note', 'presentation', 'search', 'status', 'tabpanel', 'doc-abstract', 'doc-acknowledgments', 'doc-afterword', 'doc-appendix', 'doc-bibliography', 'doc-chapter', 'doc-colophon', 'doc-conclusion', 'doc-credit', 'doc-credits', 'doc-dedication', 'doc-endnotes', 'doc-epigraph', 'doc-epilogue', 'doc-errata', 'doc-example', 'doc-foreword', 'doc-glossary', 'doc-index', 'doc-introduction', 'doc-notice', 'doc-pagelist', 'doc-part', 'doc-preface', 'doc-prologue', 'doc-pullquote', 'doc-qna', 'doc-toc' ],
9721
9737
  shadowRoot: true
9722
9738
  },
9723
9739
  select: {
@@ -15828,7 +15844,7 @@
15828
15844
  ariaAttr.forEach(function(attr) {
15829
15845
  preChecks[attr] = validateRowAttrs;
15830
15846
  });
15831
- if (allowed) {
15847
+ if (role && allowed) {
15832
15848
  for (var _i14 = 0; _i14 < attrs.length; _i14++) {
15833
15849
  var _preChecks$attrName;
15834
15850
  var attrName = attrs[_i14];
@@ -17886,7 +17902,7 @@
17886
17902
  function internalLinkPresentEvaluate(node, options, virtualNode) {
17887
17903
  var links = query_selector_all_default(virtualNode, 'a[href]');
17888
17904
  return links.some(function(vLink) {
17889
- return /^#[^/!]/.test(vLink.actualNode.getAttribute('href'));
17905
+ return /^#[^/!]/.test(vLink.attr('href'));
17890
17906
  });
17891
17907
  }
17892
17908
  var internal_link_present_evaluate_default = internalLinkPresentEvaluate;
@@ -23126,7 +23142,12 @@
23126
23142
  matches: 'autocomplete-matches',
23127
23143
  tags: [ 'cat.forms', 'wcag21aa', 'wcag135' ],
23128
23144
  actIds: [ '73f2c2' ],
23129
- all: [ 'autocomplete-valid' ],
23145
+ all: [ {
23146
+ options: {
23147
+ stateTerms: [ 'none', 'false', 'true', 'disabled', 'enabled', 'undefined', 'null' ]
23148
+ },
23149
+ id: 'autocomplete-valid'
23150
+ } ],
23130
23151
  any: [],
23131
23152
  none: []
23132
23153
  }, {
@@ -24065,7 +24086,10 @@
24065
24086
  deprecated: true
24066
24087
  }, {
24067
24088
  id: 'autocomplete-valid',
24068
- evaluate: 'autocomplete-valid-evaluate'
24089
+ evaluate: 'autocomplete-valid-evaluate',
24090
+ options: {
24091
+ stateTerms: [ 'none', 'false', 'true', 'disabled', 'enabled', 'undefined', 'null' ]
24092
+ }
24069
24093
  }, {
24070
24094
  id: 'accesskeys',
24071
24095
  evaluate: 'accesskeys-evaluate',