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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/getElementsByClassName-26.htm

Issue 1529523002: Import dom/ from web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak W3CImportExpectations Created 5 years 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><head>
3 <title>getElementsByClassName</title>
4 <meta content="multiple class attributes" name="description">
5 <link href="https://dom.spec.whatwg.org/#dom-document-getelementsbyclassname " rel="help">
6 <script src="../../../../resources/testharness.js"></script>
7 <script src="../../../../resources/testharnessreport.js"></script>
8 </head>
9 <body>
10 <div id="log"></div>
11 <div class="te xt">
12 te xt
13 <div class="te">
14 te; xt
15 <a class="text link" href="#foo">test link #foo</a>
16 </div>
17 <b class="text">text</b>
18 </div>
19 <div class="xt te">xt te</div>
20 <script type="text/javascript">
21 test(function()
22 {
23 var collection = document.getElementsByClassName("te xt");
24
25 assert_equals(collection.length, 2);
26 assert_equals(collection[0].parentNode.nodeName, "BODY");
27 assert_equals(collection[1].parentNode.nodeName, "BODY");
28 }, "multiple class attributes");
29 </script>
30 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698