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="verify spacing is handled correctly" name="description"> | 4 <meta content="verify spacing is handled correctly" 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> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 var boldText = document.getElementsByTagName("b")[0]; | 48 var boldText = document.getElementsByTagName("b")[0]; |
49 document.getElementsByTagName("table")[0].tBodies[0].rows[0].cells[0
].appendChild(boldText); | 49 document.getElementsByTagName("table")[0].tBodies[0].rows[0].cells[0
].appendChild(boldText); |
50 assert_equals(collection.length, 4); | 50 assert_equals(collection.length, 4); |
51 assert_equals(collection[0].parentNode.nodeName, "DIV"); | 51 assert_equals(collection[0].parentNode.nodeName, "DIV"); |
52 assert_equals(collection[1].parentNode.nodeName, "TABLE"); | 52 assert_equals(collection[1].parentNode.nodeName, "TABLE"); |
53 assert_equals(collection[2].parentNode.nodeName, "TD"); | 53 assert_equals(collection[2].parentNode.nodeName, "TD"); |
54 assert_equals(collection[3].parentNode.nodeName, "TR"); | 54 assert_equals(collection[3].parentNode.nodeName, "TR"); |
55 }, "verify spacing is handled correctly"); | 55 }, "verify spacing is handled correctly"); |
56 </script> | 56 </script> |
57 </body></html> | 57 </body></html> |
OLD | NEW |