Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: LayoutTests/fast/dom/getElementsByClassName/non-styled-elements.html

Issue 458663003: getElementsByClassName should include non styled Elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698