axe-core 3.5.5 → 3.5.6

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,13 @@
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.6](https://github.com/dequelabs/axe-core/compare/v3.5.5...v3.5.6) (2021-05-12)
6
+
7
+ ### Bug Fixes
8
+
9
+ - add noHtml to axe.configure ([8982c1a](https://github.com/dequelabs/axe-core/commit/8982c1a44cd2330da5be783f74a65fca121d96cb))
10
+ - do not allow postMessage with axe version of x.y.z ([fde6ab2](https://github.com/dequelabs/axe-core/commit/fde6ab2ab247ea1e8138829534fde630bb342ed2))
11
+
5
12
  ### [3.5.5](https://github.com/dequelabs/axe-core/compare/v3.5.4...v3.5.5) (2020-06-16)
6
13
 
7
14
  ### Bug Fixes
@@ -129,6 +136,13 @@ All notable changes to this project will be documented in this file. See [standa
129
136
  - **typings:** add proper return value to getRule ([#1900](https://github.com/dequelabs/axe-core/issues/1900)) ([4d907f8](https://github.com/dequelabs/axe-core/commit/4d907f86b0152122f92cceae0b242e09aff0f49a))
130
137
  - **unicode:** stop parsing escaped unicode strings ([#1997](https://github.com/dequelabs/axe-core/issues/1997)) ([7447d03](https://github.com/dequelabs/axe-core/commit/7447d03bcfd118897d8114fded1ea8a42f3da08f))
131
138
 
139
+ ### [3.4.3](https://github.com/dequelabs/axe-core/compare/v3.4.2...v3.4.3) (2021-05-12)
140
+
141
+ ### Bug Fixes
142
+
143
+ - add noHtml to axe.configure ([eec4282](https://github.com/dequelabs/axe-core/commit/eec42827c971ca60b3363d45d427ebd969fe0156))
144
+ - do not allow postMessage with axe version of x.y.z ([b317100](https://github.com/dequelabs/axe-core/commit/b3171004a6a427a74d65aee3d311315691b635cc))
145
+
132
146
  ## [3.4.2](https://github.com/dequelabs/axe-core/compare/v3.4.1...v3.4.2) (2020-02-04)
133
147
 
134
148
  ### Bug Fixes
@@ -200,6 +214,13 @@ All notable changes to this project will be documented in this file. See [standa
200
214
  - **runVirtualNode:** Allow serialised nodes [experimental](<[512d51b](https://github.com/dequelabs/axe-core/commit/512d51b)>)
201
215
  - **video-description:** deprecate video-description rule ([#1737](https://github.com/dequelabs/axe-core/issues/1737)) ([e91c25f](https://github.com/dequelabs/axe-core/commit/e91c25f))
202
216
 
217
+ ### [3.3.4](https://github.com/dequelabs/axe-core/compare/v3.3.3...v3.3.4) (2021-05-11)
218
+
219
+ ### Bug Fixes
220
+
221
+ - add noHtml to axe.configure ([ec5a4d7](https://github.com/dequelabs/axe-core/commit/ec5a4d783ad8a417df65dc1e5e4781efdeddbfa8))
222
+ - do not allow postMessage with axe version of x.y.z ([7ccd858](https://github.com/dequelabs/axe-core/commit/7ccd858fb2b58b29a955f8174298f94f87f71d26))
223
+
203
224
  ## [3.3.3](https://github.com/dequelabs/axe-core/compare/v3.3.2...v3.3.3) (2020-02-04)
204
225
 
205
226
  ### Bug Fixes
@@ -307,6 +328,13 @@ All notable changes to this project will be documented in this file. See [standa
307
328
  - only run IE11 tests in appveyor ([#1571](https://github.com/dequelabs/axe-core/issues/1571)) ([35261ef](https://github.com/dequelabs/axe-core/commit/35261ef))
308
329
  - watch integration html and json files ([#1598](https://github.com/dequelabs/axe-core/issues/1598)) ([3de0b05](https://github.com/dequelabs/axe-core/commit/3de0b05))
309
330
 
331
+ ## [3.2.4](https://github.com/dequelabs/axe-core/compare/v3.2.3...v3.2.4) (2021-05-10)
332
+
333
+ ### Bug Fixes
334
+
335
+ - add noHtml to axe.configure ([e994323](https://github.com/dequelabs/axe-core/commit/e99432311dfd45d20c8bafe823f7f8eb61065cb0))
336
+ - do not allow postMessage with axe version of x.y.z ([a05264f](https://github.com/dequelabs/axe-core/commit/a05264f0d1615e0434d5dd1efa4fca5ef76f7021))
337
+
310
338
  ## [3.2.3](https://github.com/dequelabs/axe-core/compare/v3.2.2...v3.2.3) (2020-02-04)
311
339
 
312
340
  ### Bug Fixes
@@ -389,6 +417,15 @@ All notable changes to this project will be documented in this file. See [standa
389
417
 
390
418
  - Deprecate axe.commons.utils namespace ([#1330](https://github.com/dequelabs/axe-core/issues/1330)) ([df93272](https://github.com/dequelabs/axe-core/commit/df93272))
391
419
 
420
+ <a name="3.1.3"></a>
421
+
422
+ ## [3.1.3](https://github.com/dequelabs/axe-core/compare/v3.1.2...v3.1.3) (2021-05-05)
423
+
424
+ ### Bug Fixes
425
+
426
+ - add noHtml to axe.configure ([dee205b](https://github.com/dequelabs/axe-core/commit/dee205b))
427
+ - do not allow postMessage with axe version of x.y.z ([e93f394](https://github.com/dequelabs/axe-core/commit/e93f394))
428
+
392
429
  <a name="3.1.2"></a>
393
430
 
394
431
  ## [3.1.2](https://github.com/dequelabs/axe-core/compare/v3.0.3...v3.1.2) (2018-09-07)
@@ -459,6 +496,13 @@ All notable changes to this project will be documented in this file. See [standa
459
496
  - **i18n:** Update ja (Japanese) locale for 3.1 release ([#1101](https://github.com/dequelabs/axe-core/issues/1101)) ([ef6cd86](https://github.com/dequelabs/axe-core/commit/ef6cd86))
460
497
  - **deprecate:** Deprecate audio-caption rule ([#1071](https://github.com/dequelabs/axe-core/issues/1071)) ([3b05fee](https://github.com/dequelabs/axe-core/commit/3b05fee))
461
498
 
499
+ ## [3.0.4](https://github.com/dequelabs/axe-core/compare/v3.0.3...v3.0.4) (2021-04-30)
500
+
501
+ ### Bug Fixes
502
+
503
+ - add noHtml to axe.configure ([2e18f0c](https://github.com/dequelabs/axe-core/commit/2e18f0c))
504
+ - do not allow postMessage with axe version of x.y.z ([9e62c8c](https://github.com/dequelabs/axe-core/commit/9e62c8c))
505
+
462
506
  <a name="3.0.3"></a>
463
507
 
464
508
  ## [3.0.3](https://github.com/dequelabs/axe-core/compare/v3.0.2...v3.0.3) (2018-06-04)
package/axe.d.ts CHANGED
@@ -125,6 +125,7 @@ declare namespace axe {
125
125
  rules?: Rule[];
126
126
  locale?: Locale;
127
127
  axeVersion?: string;
128
+ noHtml?: boolean;
128
129
  }
129
130
  interface Check {
130
131
  id: string;
package/axe.js CHANGED
@@ -1,5 +1,5 @@
1
- /*! axe v3.5.5
2
- * Copyright (c) 2020 Deque Systems, Inc.
1
+ /*! axe v3.5.6
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
5
5
  * License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -27,7 +27,7 @@
27
27
  return _typeof(obj);
28
28
  }
29
29
  var axe = axe || {};
30
- axe.version = '3.5.5';
30
+ axe.version = '3.5.6';
31
31
  if (typeof define === 'function' && define.amd) {
32
32
  define('axe-core', [], function() {
33
33
  'use strict';
@@ -8346,6 +8346,7 @@
8346
8346
  config = {};
8347
8347
  }
8348
8348
  config.reporter = config.reporter || null;
8349
+ config.noHtml = config.noHtml || false;
8349
8350
  config.rules = config.rules || [];
8350
8351
  config.checks = config.checks || [];
8351
8352
  config.data = _extends({
@@ -8521,6 +8522,7 @@
8521
8522
  this.commands = {};
8522
8523
  this.rules = [];
8523
8524
  this.checks = {};
8525
+ this.noHtml = audit.noHtml;
8524
8526
  unpackToObject(audit.rules, this, 'addRule');
8525
8527
  unpackToObject(audit.checks, this, 'addCheck');
8526
8528
  this.data = {};
@@ -10017,6 +10019,9 @@
10017
10019
  if (spec.locale) {
10018
10020
  audit.applyLocale(spec.locale);
10019
10021
  }
10022
+ if (spec.noHtml) {
10023
+ audit.noHtml = true;
10024
+ }
10020
10025
  }
10021
10026
  axe.configure = configureChecksRulesAndBranding;
10022
10027
  'use strict';
@@ -11077,7 +11082,13 @@
11077
11082
  toRoot: true
11078
11083
  };
11079
11084
  }
11080
- this.source = this.spec.source !== undefined ? this.spec.source : getSource(element);
11085
+ if (axe._audit && axe._audit.noHtml) {
11086
+ this.source = null;
11087
+ } else if (this.spec.source !== undefined) {
11088
+ this.source = this.spec.source;
11089
+ } else {
11090
+ this.source = getSource(element);
11091
+ }
11081
11092
  this._element = element;
11082
11093
  }
11083
11094
  DqElement.prototype = {
@@ -13164,7 +13175,7 @@
13164
13175
  function verify(postedMessage) {
13165
13176
  if (_typeof(postedMessage) === 'object' && typeof postedMessage.uuid === 'string' && postedMessage._respondable === true) {
13166
13177
  var messageSource = _getSource();
13167
- return postedMessage._source === messageSource || postedMessage._source === 'axeAPI.x.y.z' || messageSource === 'axeAPI.x.y.z';
13178
+ return postedMessage._source === messageSource;
13168
13179
  }
13169
13180
  return false;
13170
13181
  }
@@ -13218,7 +13229,7 @@
13218
13229
  function publish(source, data, keepalive) {
13219
13230
  var topic = data.topic;
13220
13231
  var subscriber = subscribers[topic];
13221
- if (subscriber) {
13232
+ if (subscriber && source === window.parent) {
13222
13233
  var responder = createResponder(source, null, data.uuid);
13223
13234
  subscriber(data.message, keepalive, responder);
13224
13235
  }