From b73caea07633c4bf69c59cd96769553733ea6c07 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Thu, 25 May 2017 22:39:57 -0700 Subject: [PATCH] Just ensure content frag from _contentForTemplate is inert. Edge does not seem to always use the exact same owner document for templates. --- test/unit/template-stamp.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/template-stamp.html b/test/unit/template-stamp.html index 0fb0455100..e5fe58a764 100644 --- a/test/unit/template-stamp.html +++ b/test/unit/template-stamp.html @@ -74,7 +74,7 @@ document.body.appendChild(el); let content = el.constructor._contentForTemplate(el.dom.$.nestedTemplate); assert.isTrue(content instanceof DocumentFragment); - assert.equal(content.ownerDocument, el.dom.$.nestedTemplate.content.ownerDocument); + assert.notOk(content.ownerDocument.defaultView); assert.equal(content.firstChild.getAttribute('on-click'), null); document.body.removeChild(el); });