OLD | NEW |
1 <html> | 1 <html> |
2 <body> | 2 <body> |
3 <div class="one">Line 1<div class="two">Line 2</div><p>Line <i>3</i></p></div> | 3 <div class="one">Line 1<div class="two">Line 2</div><p>Line <i>3</i></p></div> |
4 <div id="test" class="one two"><div class="one two">line 4</div><p class="two">l
ine 5</p></div> | 4 <div id="test" class="one two"><div class="one two">line 4</div><p class="two">l
ine 5</p></div> |
5 <p><ol id="console"></ol></p> | 5 <p><ol id="console"></ol></p> |
6 <script type="text/javascript"> | 6 <script type="text/javascript"> |
7 if (window.testRunner) | 7 if (window.testRunner) |
8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
9 | 9 |
10 function log(message) | 10 function log(message) |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 try { | 27 try { |
28 var elm = document.getElementById("test"); | 28 var elm = document.getElementById("test"); |
29 | 29 |
30 log(document.getElementsByClassName("one").dump()); | 30 log(document.getElementsByClassName("one").dump()); |
31 log(document.getElementsByClassName("two").dump()); | 31 log(document.getElementsByClassName("two").dump()); |
32 log(document.getElementsByClassName("one two").dump()); | 32 log(document.getElementsByClassName("one two").dump()); |
33 log(document.getElementsByClassName("one\t\t\n \ftwo").dump()); | 33 log(document.getElementsByClassName("one\t\t\n \ftwo").dump()); |
34 log(document.getElementsByClassName("").dump()); | 34 log(document.getElementsByClassName("").dump()); |
35 log(document.getElementsByClassName("onetwo").dump()); | 35 log(document.getElementsByClassName("onetwo").dump()); |
36 log(document.getElementsByClassName().dump()); | |
37 log(document.getElementsByClassName(null).dump()); | 36 log(document.getElementsByClassName(null).dump()); |
38 log(document.getElementsByClassName(undefined).dump()); | 37 log(document.getElementsByClassName(undefined).dump()); |
39 | 38 |
40 log(elm.getElementsByClassName("one").dump()); | 39 log(elm.getElementsByClassName("one").dump()); |
41 log(elm.getElementsByClassName("two").dump()); | 40 log(elm.getElementsByClassName("two").dump()); |
42 log(elm.getElementsByClassName("one two").dump()); | 41 log(elm.getElementsByClassName("one two").dump()); |
43 log(elm.getElementsByClassName("one\t\t\n \ftwo").dump()); | 42 log(elm.getElementsByClassName("one\t\t\n \ftwo").dump()); |
44 log(elm.getElementsByClassName("").dump()); | 43 log(elm.getElementsByClassName("").dump()); |
45 log(elm.getElementsByClassName("onetwo").dump()); | 44 log(elm.getElementsByClassName("onetwo").dump()); |
46 log(elm.getElementsByClassName().dump()); | |
47 log(elm.getElementsByClassName(null).dump()); | 45 log(elm.getElementsByClassName(null).dump()); |
48 log(elm.getElementsByClassName(undefined).dump()); | 46 log(elm.getElementsByClassName(undefined).dump()); |
49 } catch (ex) { | 47 } catch (ex) { |
50 log("Exception: " + ex.description); | 48 log("Exception: " + ex.description); |
51 } | 49 } |
52 </script> | 50 </script> |
53 </body> | 51 </body> |
54 </html> | 52 </html> |
OLD | NEW |