Correct use of document.contains to document.documentElement.contains on IE.

This commit is contained in:
Steven Orvell 2016-01-14 15:59:01 -08:00
parent b9e5cce27f
commit 0e74810862

View File

@ -188,7 +188,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
// 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;
}
}