Skip to content

Commit

Permalink
Correct use of document.contains to document.documentElement.contains…
Browse files Browse the repository at this point in the history
… on IE.
  • Loading branch information
Steven Orvell committed Jan 14, 2016
1 parent b9e5cce commit 0e74810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/dom-api-shady.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
// can be cached while an element is inside a fragment.
// If this happens and we cache the result, the value can become stale
// because for perf we avoid processing the subtree of added fragments.
if (root || document.contains(node)) {
if (root || document.documentElement.contains(node)) {
node._ownerShadyRoot = root;
}
}
Expand Down

0 comments on commit 0e74810

Please sign in to comment.