3 <script src=
"../../../resources/js-test.js"></script>
7 <ol name='name1' class='class2'
/>
8 <ol name='name2' class='class1'
/>
9 <p name='name1' class='class1'
/>
12 description("Test checking that node list fetched by various queries have proper object identity");
14 function areSame(expr
) { shouldBeTrue(expr
+ ' === ' + expr
) };
16 areSame('document.getElementsByTagName("ol")');
17 areSame('document.getElementsByName("name1")');
18 areSame('document.getElementsByClassName("class1")');