diff --git a/src/lib/dom-api.html b/src/lib/dom-api.html index d14f7f45..caa0ca2b 100644 --- a/src/lib/dom-api.html +++ b/src/lib/dom-api.html @@ -49,10 +49,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN return true; } var n = node; - // wrap document for SD polyfill - var wrappedDocument = wrap(document); + var doc = node.ownerDocument; // walk from node to `this` or `document` - while (n && n !== wrappedDocument && n !== this.node) { + while (n && n !== doc && n !== this.node) { // use logical parentnode, or native ShadowRoot host n = Polymer.dom(n).parentNode || n.host; } @@ -194,7 +193,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN p.oMatchesSelector || p.webkitMatchesSelector; return DomApi; - + })(); - \ No newline at end of file + diff --git a/test/runner.html b/test/runner.html index 654381b6..8acdc9b9 100644 --- a/test/runner.html +++ b/test/runner.html @@ -15,7 +15,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN