| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html><head> | 2 <html><head> |
| 3 <title>getElementsByClassName</title> | 3 <title>getElementsByClassName</title> |
| 4 <meta content="get elements in document then add element to collection"
name="description"> | 4 <meta content="get elements in document then add element to collection"
name="description"> |
| 5 <link href="https://dom.spec.whatwg.org/#dom-document-getelementsbyclassname
" rel="help"> | 5 <link href="https://dom.spec.whatwg.org/#dom-document-getelementsbyclassname
" rel="help"> |
| 6 <script src="../../../../resources/testharness.js"></script> | 6 <script src="/resources/testharness.js"></script> |
| 7 <script src="../../../../resources/testharnessreport.js"></script> | 7 <script src="/resources/testharnessreport.js"></script> |
| 8 </head> | 8 </head> |
| 9 <body> | 9 <body> |
| 10 <div id="log"></div> | 10 <div id="log"></div> |
| 11 <div> | 11 <div> |
| 12 <div> | 12 <div> |
| 13 <a class="text link" href="#foo">test link #foo</a> | 13 <a class="text link" href="#foo">test link #foo</a> |
| 14 </div> | 14 </div> |
| 15 <b class="text">text</b> | 15 <b class="text">text</b> |
| 16 </div> | 16 </div> |
| 17 <table> | 17 <table> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 assert_equals(collection.length, 5); | 53 assert_equals(collection.length, 5); |
| 54 assert_equals(collection[0].parentNode.nodeName, "DIV"); | 54 assert_equals(collection[0].parentNode.nodeName, "DIV"); |
| 55 assert_equals(collection[1].parentNode.nodeName, "DIV"); | 55 assert_equals(collection[1].parentNode.nodeName, "DIV"); |
| 56 assert_equals(collection[2].parentNode.nodeName, "TABLE"); | 56 assert_equals(collection[2].parentNode.nodeName, "TABLE"); |
| 57 assert_equals(collection[3].parentNode.nodeName, "TD"); | 57 assert_equals(collection[3].parentNode.nodeName, "TD"); |
| 58 assert_equals(collection[4].parentNode.nodeName, "TR"); | 58 assert_equals(collection[4].parentNode.nodeName, "TR"); |
| 59 }, "get elements in document then add element to collection"); | 59 }, "get elements in document then add element to collection"); |
| 60 </script> | 60 </script> |
| 61 </body></html> | 61 </body></html> |
| OLD | NEW |