OLD | NEW |
1 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:g="http://www.w3.org/2000/svg"
xmlns:h="http://www.w3.org/1999/xhtml" xmlns:t="http://tc.labs.opera.com/#test"> | 1 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:g="http://www.w3.org/2000/svg"
xmlns:h="http://www.w3.org/1999/xhtml" xmlns:t="http://tc.labs.opera.com/#test"> |
2 <head> | 2 <head> |
3 <title>document.getElementsByClassName(): "tricky" compound</title> | 3 <title>document.getElementsByClassName(): "tricky" compound</title> |
4 <script src="../../../../resources/testharness.js"></script> | 4 <script src="../../../../resources/testharness.js"></script> |
5 <script src="../../../../resources/testharnessreport.js"></script> | 5 <script src="../../../../resources/testharnessreport.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <div id="log" /> | 8 <div id="log" /> |
9 <div id="tests"> | 9 <div id="tests"> |
10 <x class="a"/> | 10 <x class="a"/> |
11 <g:x class="a"/> | 11 <g:x class="a"/> |
12 <x t:class="a" h:class="a" g:class="a"/> | 12 <x t:class="a" h:class="a" g:class="a"/> |
13 <g:x t:class="a" h:class="a" g:class="a"/> | 13 <g:x t:class="a" h:class="a" g:class="a"/> |
14 <t:x class="a" t:class="a" h:class="a" g:class="a"/> | 14 <t:x class="a" t:class="a" h:class="a" g:class="a"/> |
15 </div> | 15 </div> |
16 <script> | 16 <script> |
17 test(function() { | 17 test(function() { |
18 var collection = document.getElementsByClassName("a"); | 18 var collection = document.getElementsByClassName("a"); |
19 var test = document.getElementById("tests").children; | 19 var test = document.getElementById("tests").children; |
20 assert_array_equals(collection, [test[0], test[1], test[4]]); | 20 assert_array_equals(collection, [test[0], test[1], test[4]]); |
21 }) | 21 }) |
22 </script> | 22 </script> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |