OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html><head class="foo"> | 2 <html><head class="foo"> |
3 <title class="foo">getElementsByClassName</title> | 3 <title class="foo">getElementsByClassName</title> |
4 <meta class="foo" content="big element listing" name="description"> | 4 <meta class="foo" content="big element listing" name="description"> |
5 <link class="foo"> | 5 <link class="foo"> |
6 <base class="foo"> | 6 <base class="foo"> |
7 <script class="foo"></script> | 7 <script class="foo"></script> |
8 <style class="foo"></style> | 8 <style class="foo"></style> |
9 <script src="../../../../resources/testharness.js"></script> | 9 <script src="../../../../resources/testharness.js"></script> |
10 <script src="../../../../resources/testharnessreport.js"></script> | 10 <script src="../../../../resources/testharnessreport.js"></script> |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 "VAR"]; | 181 "VAR"]; |
182 | 182 |
183 var collection = document.getElementsByClassName("foo"); | 183 var collection = document.getElementsByClassName("foo"); |
184 for (var x = 0; x < collection.length; x++) | 184 for (var x = 0; x < collection.length; x++) |
185 { | 185 { |
186 assert_equals(collection[x].nodeName, arrElements[x]); | 186 assert_equals(collection[x].nodeName, arrElements[x]); |
187 } | 187 } |
188 }, "big element listing"); | 188 }, "big element listing"); |
189 </script> | 189 </script> |
190 </body></html> | 190 </body></html> |
OLD | NEW |