axe-core 4.5.0 → 4.5.1
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 +11 -8
- package/axe.min.js +2 -2
- package/package.json +1 -1
- package/sri-history.json +4 -0
package/axe.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! axe v4.5.
|
|
1
|
+
/*! axe v4.5.1
|
|
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.5.
|
|
25
|
+
axe.version = '4.5.1';
|
|
26
26
|
if (typeof define === 'function' && define.amd) {
|
|
27
27
|
define('axe-core', [], function() {
|
|
28
28
|
return axe;
|
|
@@ -6116,8 +6116,8 @@
|
|
|
6116
6116
|
return '';
|
|
6117
6117
|
}
|
|
6118
6118
|
var source = element.outerHTML;
|
|
6119
|
-
if (!source && typeof XMLSerializer === 'function') {
|
|
6120
|
-
source = new XMLSerializer().serializeToString(element);
|
|
6119
|
+
if (!source && typeof window.XMLSerializer === 'function') {
|
|
6120
|
+
source = new window.XMLSerializer().serializeToString(element);
|
|
6121
6121
|
}
|
|
6122
6122
|
return truncate(source || '');
|
|
6123
6123
|
}
|
|
@@ -12074,7 +12074,7 @@
|
|
|
12074
12074
|
function parseCrossOriginStylesheet(url, options, priority, importedUrls, isCrossOrigin) {
|
|
12075
12075
|
importedUrls.push(url);
|
|
12076
12076
|
return new Promise(function(resolve, reject) {
|
|
12077
|
-
var request = new XMLHttpRequest();
|
|
12077
|
+
var request = new window.XMLHttpRequest();
|
|
12078
12078
|
request.open('GET', url);
|
|
12079
12079
|
request.timeout = constants_default.preload.timeout;
|
|
12080
12080
|
request.addEventListener('error', reject);
|
|
@@ -12410,8 +12410,8 @@
|
|
|
12410
12410
|
writable: true
|
|
12411
12411
|
});
|
|
12412
12412
|
}
|
|
12413
|
-
if (window.Node && !('isConnected' in Node.prototype)) {
|
|
12414
|
-
Object.defineProperty(Node.prototype, 'isConnected', {
|
|
12413
|
+
if (window.Node && !('isConnected' in window.Node.prototype)) {
|
|
12414
|
+
Object.defineProperty(window.Node.prototype, 'isConnected', {
|
|
12415
12415
|
get: function get() {
|
|
12416
12416
|
return !this.ownerDocument || !(this.ownerDocument.compareDocumentPosition(this) & this.DOCUMENT_POSITION_DISCONNECTED);
|
|
12417
12417
|
}
|
|
@@ -12574,6 +12574,9 @@
|
|
|
12574
12574
|
}
|
|
12575
12575
|
function getStylesheetsFromDocument(rootNode) {
|
|
12576
12576
|
return Array.from(rootNode.styleSheets).filter(function(sheet) {
|
|
12577
|
+
if (!sheet.media) {
|
|
12578
|
+
return false;
|
|
12579
|
+
}
|
|
12577
12580
|
return filterMediaIsPrint(sheet.media.mediaText);
|
|
12578
12581
|
});
|
|
12579
12582
|
}
|
|
@@ -17640,7 +17643,7 @@
|
|
|
17640
17643
|
}
|
|
17641
17644
|
var flatten_shadow_colors_default = flattenColors2;
|
|
17642
17645
|
function isInlineDescendant(node, descendant) {
|
|
17643
|
-
var CONTAINED_BY = Node.DOCUMENT_POSITION_CONTAINED_BY;
|
|
17646
|
+
var CONTAINED_BY = window.Node.DOCUMENT_POSITION_CONTAINED_BY;
|
|
17644
17647
|
if (!(node.compareDocumentPosition(descendant) & CONTAINED_BY)) {
|
|
17645
17648
|
return false;
|
|
17646
17649
|
}
|