diff --git a/test/unit/template-stamp.html b/test/unit/template-stamp.html
index 70ad52bfc2..0fb0455100 100644
--- a/test/unit/template-stamp.html
+++ b/test/unit/template-stamp.html
@@ -19,7 +19,7 @@
-
+
a
b
@@ -75,7 +75,7 @@
let content = el.constructor._contentForTemplate(el.dom.$.nestedTemplate);
assert.isTrue(content instanceof DocumentFragment);
assert.equal(content.ownerDocument, el.dom.$.nestedTemplate.content.ownerDocument);
- assert.equal(content.firstElementChild.getAttribute('on-click'), null);
+ assert.equal(content.firstChild.getAttribute('on-click'), null);
document.body.removeChild(el);
});
@@ -84,7 +84,7 @@
document.body.appendChild(el);
let content = el.dom.$.preservedTemplate.content;
assert.isTrue(content instanceof DocumentFragment);
- assert.equal(content.firstElementChild.getAttribute('on-click'), 'shouldNotBeRemoved');
+ assert.equal(content.childNodes[1].getAttribute('on-click'), 'shouldNotBeRemoved');
document.body.removeChild(el);
});