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

Commit

Permalink
Merge pull request #237 from alice/master
Browse files Browse the repository at this point in the history
Revert #150
  • Loading branch information
Alice committed Sep 4, 2015
2 parents 6d89304 + df40093 commit 0062f77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Bug fixes:

* Revert #150 which was causing the extension not to work.

## 2.9.0 - 2015-09-04

## 2.9.0-rc.0 - 2015-08-21
Expand Down
7 changes: 0 additions & 7 deletions src/js/AuditRule.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,6 @@ axs.AuditRule.collectMatchingElements = function(node, matcher, collection,
}
}

// If it is a iframe, get the contentDocument
if (element && element.localName == 'iframe' && element.contentDocument) {
axs.AuditRule.collectMatchingElements(element.contentDocument,
matcher,
collection,
opt_shadowRoot);
}
// If it is neither the parent of a ShadowRoot, a <content> element, nor
// a <shadow> element recurse normally.
var child = node.firstChild;
Expand Down
10 changes: 0 additions & 10 deletions test/js/audit-rule-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,6 @@
equal(matched.length, DIV_COUNT);
});

test("Iframe with simple DOM", function () {
var ifrm = document.createElement("IFRAME");
var container = document.getElementById('qunit-fixture');
container.appendChild(ifrm);
ifrm.contentDocument.body.appendChild(buildTestDom());
var matched = [];
axs.AuditRule.collectMatchingElements(container, matcher, matched);
equal(matched.length, DIV_COUNT);
});

test("With shadow DOM with no content insertion point", function () {
var container = document.getElementById('qunit-fixture');
container.appendChild(buildTestDom());
Expand Down

0 comments on commit 0062f77

Please sign in to comment.