2 <template id=
"template"><span></span></template>
3 <script src=
"../../../resources/js-test.js"></script>
5 description('Test HTMLTemplateElement content node wrappers have the correct lifetime.');
7 if (!window
.HTMLTemplateElement
)
8 testFailed('This test requires ENABLE(TEMPLATE_TAG)');
10 var template
= document
.getElementById('template');
11 var span
= template
.content
.firstChild
;
12 shouldBe('span.tagName', '"SPAN"');
14 span
.expando
= 'present';
15 shouldBe('span.expando', '"present"');
19 span
= template
.content
.firstChild
;
20 shouldBe('span.tagName', '"SPAN"');
21 shouldBe('span.expando', '"present"');