Skip to content

Commit 0e74810

Browse files
author
Steven Orvell
committed
Correct use of document.contains to document.documentElement.contains on IE.
1 parent b9e5cce commit 0e74810

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/lib/dom-api-shady.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
// can be cached while an element is inside a fragment.
189189
// If this happens and we cache the result, the value can become stale
190190
// because for perf we avoid processing the subtree of added fragments.
191-
if (root || document.contains(node)) {
191+
if (root || document.documentElement.contains(node)) {
192192
node._ownerShadyRoot = root;
193193
}
194194
}

0 commit comments

Comments
 (0)