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

Revert #150 #237

Merged
merged 1 commit into from
Sep 4, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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