Skip to content

Commit

Permalink
Just ensure content frag from _contentForTemplate is inert.
Browse files Browse the repository at this point in the history
Edge does not seem to always use the exact same owner document for templates.
  • Loading branch information
kevinpschaaf committed May 26, 2017
1 parent 02e31d7 commit b73caea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/template-stamp.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit b73caea

Please sign in to comment.