2 <script src=
"../../resources/js-test.js"></script>
5 description('Tests that attribute node wrappers are not prematurely garbage collected');
7 var e
= document
.createElement('div');
8 document
.body
.appendChild(e
);
9 e
.setAttribute('id', 'd');
10 e
.setAttribute('foo', 'bar');
11 a
= e
.getAttributeNode('foo');
13 shouldBe('a.prop', '"set"');
19 e
= document
.body
.querySelector('div#d');
20 a
= e
.getAttributeNode('foo');
21 shouldBe('a.prop', '"set"');
23 successfullyParsed
= true;