Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
#149 Adding copy-dist...
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhsv committed May 2, 2015
1 parent 2fbd434 commit 08b3be1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dist/js/axs_testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -1536,19 +1536,20 @@ axs.AuditRule.collectMatchingElements = function(a, b, c, d) {
}
}
if (e && "content" == e.localName) {
for (e = e.getDistributedNodes(), f = 0;f < e.length;f++) {
axs.AuditRule.collectMatchingElements(e[f], b, c, d);
for (var f = e.getDistributedNodes(), g = 0;g < f.length;g++) {
axs.AuditRule.collectMatchingElements(f[g], b, c, d);
}
} else {
if (e && "shadow" == e.localName) {
if (f = e, d) {
for (e = f.getDistributedNodes(), f = 0;f < e.length;f++) {
axs.AuditRule.collectMatchingElements(e[f], b, c, d);
for (f = f.getDistributedNodes(), g = 0;g < f.length;g++) {
axs.AuditRule.collectMatchingElements(f[g], b, c, d);
}
} else {
console.warn("ShadowRoot not provided for", e);
}
}
e && "iframe" == e.localName && axs.AuditRule.collectMatchingElements(a.contentDocument, b, c, d);
for (a = a.firstChild;null != a;) {
axs.AuditRule.collectMatchingElements(a, b, c, d), a = a.nextSibling;
}
Expand Down

0 comments on commit 08b3be1

Please sign in to comment.