OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> |
| 5 </head> |
| 6 <body> |
| 7 <script type="text/javascript"> |
| 8 description("This test checks to see if getElementsByClassName finds non styled
elements."); |
| 9 |
| 10 var d = document.createElement("div"); |
| 11 d.setAttribute("class", "target"); |
| 12 document.documentElement.appendChild(d); |
| 13 |
| 14 var e = document.createElementNS("http://foo.com", "div"); |
| 15 e.setAttribute("class", "target"); |
| 16 document.documentElement.appendChild(e); |
| 17 |
| 18 shouldBe("document.getElementsByClassName('target').length", "2"); |
| 19 </script> |
| 20 </body> |
| 21 </html> |
OLD | NEW |