axe-core 3.5.0-canary.c7113fc → 3.5.0

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,39 +2,6 @@
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
- ## [3.5.0-canary.c7113fc](https://github.com/dequelabs/axe-core/compare/v3.5.0...v3.5.0-canary.c7113fc) (2020-02-12)
6
-
7
-
8
- ### Features
9
-
10
- * update SC tags for `label` rule ([#2037](https://github.com/dequelabs/axe-core/issues/2037)) ([c7113fc](https://github.com/dequelabs/axe-core/commit/c7113fcc5d3f144e37d0204eebef701ffc844280))
11
-
12
-
13
- ### Bug Fixes
14
-
15
- * ignores axe.ping responses that do not contain axe=true ([7d8aa42](https://github.com/dequelabs/axe-core/commit/7d8aa4256574ea87903ab84eb4467163c36d17e5))
16
- * input[role=button][value='correct'] should pass ([#1897](https://github.com/dequelabs/axe-core/issues/1897)) ([3aba02c](https://github.com/dequelabs/axe-core/commit/3aba02c0a59d8d267465aadb41d21d924f5b5d77))
17
- * remove heading from list of widget roles ([#1882](https://github.com/dequelabs/axe-core/issues/1882)) ([beb458f](https://github.com/dequelabs/axe-core/commit/beb458fe3c8bbddb657f03d6e35fefff5b7db6f8))
18
- * **td-has-headers:** greatly improve performance of td-has-headers rule ([#1887](https://github.com/dequelabs/axe-core/issues/1887)) ([a588cad](https://github.com/dequelabs/axe-core/commit/a588cadbd6f9a80db97311823d9fdf59519891d1))
19
- * removes flaky test in axe Pro api check ([f2b3b54](https://github.com/dequelabs/axe-core/commit/f2b3b54722eda64c954d96959ea398b230f0bc21))
20
- * **aria-allowed-role:** allow role combobox on input tel, search, url, and email ([#1850](https://github.com/dequelabs/axe-core/issues/1850)) ([75d3c8b](https://github.com/dequelabs/axe-core/commit/75d3c8b5d2583160031b9fd068686e113cd5a185))
21
- * **axe.d.ts:** RunOnly.values should not accept a RunOnlyOption ([#1888](https://github.com/dequelabs/axe-core/issues/1888)) ([94b1466](https://github.com/dequelabs/axe-core/commit/94b146667ac8b2196ea7bb9cd7a9975a6565cd96))
22
- * **build:** add lang query parameter to helpUrl when builing with a locale ([#1909](https://github.com/dequelabs/axe-core/issues/1909)) ([a2f0247](https://github.com/dequelabs/axe-core/commit/a2f02472d98de24e41d54c8756e366ad62f2d2ee))
23
- * **color-contrast:** parse font-weight value as number ([#2031](https://github.com/dequelabs/axe-core/issues/2031)) ([#2040](https://github.com/dequelabs/axe-core/issues/2040)) ([72a5a82](https://github.com/dequelabs/axe-core/commit/72a5a8218846714470274fa42fbe7bb161b79fd8))
24
- * **color-contrast:** properly pass options to check ([#2033](https://github.com/dequelabs/axe-core/issues/2033)) ([26b99c0](https://github.com/dequelabs/axe-core/commit/26b99c0a511bd6fffaaca7535d732f26b39ef46e))
25
- * **color-contrast:** take into account parent opacity for foreground color ([#1902](https://github.com/dequelabs/axe-core/issues/1902)) ([639c41b](https://github.com/dequelabs/axe-core/commit/639c41bd6d4cdc5a8f9cb31c2030afd716ba1051))
26
- * **commons:** avoid unicode regex encoding in axe.min.js ([#2024](https://github.com/dequelabs/axe-core/issues/2024)) ([ae90dc4](https://github.com/dequelabs/axe-core/commit/ae90dc47521f6047f71befcb3551686cf857208d))
27
- * **is-focusable:** use tabindex attribute instead of property ([#1912](https://github.com/dequelabs/axe-core/issues/1912)) ([aa5314d](https://github.com/dequelabs/axe-core/commit/aa5314d14dfee8b3f0721ac46c5aaebc425c550b))
28
- * **is-icon-ligature:** ignore whitespace characters ([#1908](https://github.com/dequelabs/axe-core/issues/1908)) ([77fc838](https://github.com/dequelabs/axe-core/commit/77fc83892e2fa0967d36047577c61f88b7fe954c))
29
- * **is-ligature-icon:** rename canvas to canvasContext ([#1880](https://github.com/dequelabs/axe-core/issues/1880)) ([604ba4f](https://github.com/dequelabs/axe-core/commit/604ba4ffcb2ddb70318cd2e498978d484a00dcd4))
30
- * **link-name:** test role=link when there is no href ([#1921](https://github.com/dequelabs/axe-core/issues/1921)) ([e839c57](https://github.com/dequelabs/axe-core/commit/e839c5772414655684b6cea4d05a1c01ee98a303))
31
- * **listitem:** clarify that li elements must be contained in a list or role=list ([#1894](https://github.com/dequelabs/axe-core/issues/1894)) ([8fa0964](https://github.com/dequelabs/axe-core/commit/8fa0964f5fd15fabac988d5a135735e0bc481944))
32
- * **locales:** fix incompeteMessageFallback to be a string rather than an object ([#1853](https://github.com/dequelabs/axe-core/issues/1853)) ([02a1d8a](https://github.com/dequelabs/axe-core/commit/02a1d8a097f1958a1f22f47169cb567559614358))
33
- * **run:** throw error if axe.run is called after a run has started but not completed ([#1914](https://github.com/dequelabs/axe-core/issues/1914)) ([290d125](https://github.com/dequelabs/axe-core/commit/290d125be32c7304d7456a385032a8409a3f1f4f))
34
- * **server-side-image-map:** return as needs review rather than failure ([#1898](https://github.com/dequelabs/axe-core/issues/1898)) ([ce73af9](https://github.com/dequelabs/axe-core/commit/ce73af9acbb04fde22187949fd94a52f43658b8b))
35
- * **tabindex:** don't error when tabindex property is overridden ([#1910](https://github.com/dequelabs/axe-core/issues/1910)) ([e6875ee](https://github.com/dequelabs/axe-core/commit/e6875ee203af7ce02a8a8ccc61caad96a065f70c))
36
- * **typings:** add proper return value to getRule ([#1900](https://github.com/dequelabs/axe-core/issues/1900)) ([0d7c3d2](https://github.com/dequelabs/axe-core/commit/0d7c3d20334b6814f4c7b2fd108d46d4c4754d03))
37
-
38
5
  ## [3.5.0](https://github.com/dequelabs/axe-core/compare/v3.4.0...v3.5.0) (2020-02-04)
39
6
 
40
7
  ### Features
package/axe.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! axe v3.5.0-canary.c7113fc
1
+ /*! axe v3.5.0
2
2
  * Copyright (c) 2020 Deque Systems, Inc.
3
3
  *
4
4
  * Your use of this Source Code Form is subject to the terms of the Mozilla Public
@@ -14,7 +14,6 @@
14
14
  var document = window.document;
15
15
  'use strict';
16
16
  function _typeof(obj) {
17
- '@babel/helpers - typeof';
18
17
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
19
18
  _typeof = function _typeof(obj) {
20
19
  return typeof obj;
@@ -27,7 +26,7 @@
27
26
  return _typeof(obj);
28
27
  }
29
28
  var axe = axe || {};
30
- axe.version = '3.5.0-canary.c7113fc';
29
+ axe.version = '3.5.0';
31
30
  if (typeof define === 'function' && define.amd) {
32
31
  define('axe-core', [], function() {
33
32
  'use strict';
@@ -8309,7 +8308,6 @@
8309
8308
  var helpers = {};
8310
8309
  'use strict';
8311
8310
  function _typeof(obj) {
8312
- '@babel/helpers - typeof';
8313
8311
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
8314
8312
  _typeof = function _typeof(obj) {
8315
8313
  return typeof obj;
@@ -8892,7 +8890,6 @@
8892
8890
  };
8893
8891
  'use strict';
8894
8892
  function _typeof(obj) {
8895
- '@babel/helpers - typeof';
8896
8893
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
8897
8894
  _typeof = function _typeof(obj) {
8898
8895
  return typeof obj;
@@ -9480,7 +9477,6 @@
9480
9477
  return _extends.apply(this, arguments);
9481
9478
  }
9482
9479
  function _typeof(obj) {
9483
- '@babel/helpers - typeof';
9484
9480
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
9485
9481
  _typeof = function _typeof(obj) {
9486
9482
  return typeof obj;
@@ -9615,7 +9611,6 @@
9615
9611
  axe.SerialVirtualNode = SerialVirtualNode;
9616
9612
  'use strict';
9617
9613
  function _typeof(obj) {
9618
- '@babel/helpers - typeof';
9619
9614
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
9620
9615
  _typeof = function _typeof(obj) {
9621
9616
  return typeof obj;
@@ -9851,7 +9846,6 @@
9851
9846
  })(axe);
9852
9847
  'use strict';
9853
9848
  function _typeof(obj) {
9854
- '@babel/helpers - typeof';
9855
9849
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
9856
9850
  _typeof = function _typeof(obj) {
9857
9851
  return typeof obj;
@@ -10261,7 +10255,6 @@
10261
10255
  };
10262
10256
  'use strict';
10263
10257
  function _typeof(obj) {
10264
- '@babel/helpers - typeof';
10265
10258
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
10266
10259
  _typeof = function _typeof(obj) {
10267
10260
  return typeof obj;
@@ -10435,7 +10428,6 @@
10435
10428
  };
10436
10429
  'use strict';
10437
10430
  function _typeof(obj) {
10438
- '@babel/helpers - typeof';
10439
10431
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
10440
10432
  _typeof = function _typeof(obj) {
10441
10433
  return typeof obj;
@@ -10898,7 +10890,6 @@
10898
10890
  };
10899
10891
  'use strict';
10900
10892
  function _typeof(obj) {
10901
- '@babel/helpers - typeof';
10902
10893
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
10903
10894
  _typeof = function _typeof(obj) {
10904
10895
  return typeof obj;
@@ -11170,7 +11161,6 @@
11170
11161
  };
11171
11162
  'use strict';
11172
11163
  function _typeof(obj) {
11173
- '@babel/helpers - typeof';
11174
11164
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
11175
11165
  _typeof = function _typeof(obj) {
11176
11166
  return typeof obj;
@@ -12731,7 +12721,6 @@
12731
12721
  return obj;
12732
12722
  }
12733
12723
  function _typeof(obj) {
12734
- '@babel/helpers - typeof';
12735
12724
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
12736
12725
  _typeof = function _typeof(obj) {
12737
12726
  return typeof obj;
@@ -12852,7 +12841,6 @@
12852
12841
  };
12853
12842
  'use strict';
12854
12843
  function _typeof(obj) {
12855
- '@babel/helpers - typeof';
12856
12844
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
12857
12845
  _typeof = function _typeof(obj) {
12858
12846
  return typeof obj;
@@ -12996,7 +12984,6 @@
12996
12984
  };
12997
12985
  'use strict';
12998
12986
  function _typeof(obj) {
12999
- '@babel/helpers - typeof';
13000
12987
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
13001
12988
  _typeof = function _typeof(obj) {
13002
12989
  return typeof obj;
@@ -13112,7 +13099,6 @@
13112
13099
  })();
13113
13100
  'use strict';
13114
13101
  function _typeof(obj) {
13115
- '@babel/helpers - typeof';
13116
13102
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
13117
13103
  _typeof = function _typeof(obj) {
13118
13104
  return typeof obj;
@@ -13639,7 +13625,6 @@
13639
13625
  }
13640
13626
  }
13641
13627
  function _typeof(obj) {
13642
- '@babel/helpers - typeof';
13643
13628
  if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
13644
13629
  _typeof = function _typeof(obj) {
13645
13630
  return typeof obj;
@@ -15617,7 +15602,7 @@
15617
15602
  var type = node.getAttribute('type').toLowerCase();
15618
15603
  return [ 'hidden', 'image', 'button', 'submit', 'reset' ].includes(type) === false;
15619
15604
  },
15620
- tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'wcag131', 'section508', 'section508.22.n' ],
15605
+ tags: [ 'cat.forms', 'wcag2a', 'wcag332', 'wcag131', 'section508', 'section508.22.n' ],
15621
15606
  all: [],
15622
15607
  any: [ 'aria-label', 'aria-labelledby', 'implicit-label', 'explicit-label', 'non-empty-title' ],
15623
15608
  none: [ 'help-same-as-label', 'hidden-explicit-label' ]
@@ -16630,8 +16615,8 @@
16630
16615
  var fgColor = color.getForegroundColor(node, noScroll, bgColor);
16631
16616
  var nodeStyle = window.getComputedStyle(node);
16632
16617
  var fontSize = parseFloat(nodeStyle.getPropertyValue('font-size'));
16633
- var fontWeight = parseFloat(nodeStyle.getPropertyValue('font-weight'));
16634
- var bold = !isNaN(fontWeight) && fontWeight >= 700;
16618
+ var fontWeight = nodeStyle.getPropertyValue('font-weight');
16619
+ var bold = [ 'bold', 'bolder', '600', '700', '800', '900' ].indexOf(fontWeight) !== -1;
16635
16620
  var cr = color.hasValidContrastRatio(bgColor, fgColor, fontSize, bold);
16636
16621
  var truncatedResult = Math.floor(cr.contrastRatio * 100) / 100;
16637
16622
  var missing;