Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / getElementsByClassName / non-styled-elements.html
blobe4f05ab107a9322d18abfdd536a80222820e1425
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.");
10 var d = document.createElement("div");
11 d.setAttribute("class", "target");
12 document.documentElement.appendChild(d);
14 var e = document.createElementNS("http://foo.com", "div");
15 e.setAttribute("class", "target");
16 document.documentElement.appendChild(e);
18 shouldBe("document.getElementsByClassName('target').length", "2");
19 </script>
20 </body>
21 </html>