| 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/common.js"></script> | 4 <script src="resources/common.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <p id="r">FAIL (script did not run)</p> | 7 <p id="r">FAIL (script did not run)</p> |
| 8 <x class="a"/> | 8 <x class="a"/> |
| 9 <g:x class="a"/> | 9 <g:x class="a"/> |
| 10 <x t:class="a" h:class="a" g:class="a"/> | 10 <x t:class="a" h:class="a" g:class="a"/> |
| 11 <g:x t:class="a" h:class="a" g:class="a"/> | 11 <g:x t:class="a" h:class="a" g:class="a"/> |
| 12 <t:x class="a" t:class="a" h:class="a" g:class="a"/> | 12 <t:x class="a" t:class="a" h:class="a" g:class="a"/> |
| 13 <script> | 13 <script> |
| 14 var collection = document.getElementsByClassName("a"), | 14 var collection = document.getElementsByClassName("a"), |
| 15 test = document.getElementsByTagName("x") | 15 test = document.getElementsByTagNameNS("*", "x") |
| 16 t(collection, [test[0], test[1]]) | 16 t(collection, [test[0], test[1], test[4]]) |
| 17 </script> | 17 </script> |
| 18 </body> | 18 </body> |
| 19 </html> | 19 </html> |
| OLD | NEW |