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

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

Issue 458663003: getElementsByClassName should include non styled Elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test 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 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:foo="http://foo.com">
2 <body>
3 <div class="target"/>
4 <foo:div class="target"/>
5 <p id="log"></p>
6 <script type="text/javascript">
7 if (window.testRunner)
Inactive 2014/08/15 18:38:57 Could you use js-test.js?
8 testRunner.dumpAsText();
9
10 function log(msg)
11 {
12 document.getElementById('log').appendChild(document.createTextNode(msg + '\n'));
13 }
14
15 if (document.getElementsByClassName("target").length == 2) {
16 log("PASS");
17 } else {
18 log("FAIL");
19 }
20 </script>
21 </body>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698