Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / getElementsByClassName / 011.xml
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>
3   <title>document.getElementsByClassName(): "tricky" compound</title>
4   <script src="resources/common.js"></script>
5  </head>
6  <body>
7   <p id="r">FAIL (script did not run)</p>  
8   <x class="a"/>
9   <g:x 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"/>
12   <t:x class="a" t:class="a" h:class="a" g:class="a"/>
13   <script>
14    var collection = document.getElementsByClassName("a"),
15        test = document.getElementsByTagNameNS("*", "x")
16    t(collection, [test[0], test[1], test[4]])
17   </script>
18  </body>
19 </html>