From 0e7481086262eddb3e6eec5b358d3a6cb7a0eec1 Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Thu, 14 Jan 2016 15:59:01 -0800 Subject: [PATCH] Correct use of document.contains to document.documentElement.contains on IE. --- src/lib/dom-api-shady.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/dom-api-shady.html b/src/lib/dom-api-shady.html index 46d445ce89..0e0b24a297 100644 --- a/src/lib/dom-api-shady.html +++ b/src/lib/dom-api-shady.html @@ -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; } }