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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/dom/nodes/getElementsByClassName-14.htm

Issue 2899243003: DOM: Fix an incorrect result of getElementsByClassName() in quirks mode. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ClassCollection.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- quirks mode --> 1 <!-- quirks mode -->
2 <html class="a A"> 2 <html class="a A">
3 <head> 3 <head>
4 <title>document.getElementsByClassName(): case-insensitive (quirks mode)</titl e> 4 <title>document.getElementsByClassName(): case-insensitive (quirks mode)</titl e>
5 <link rel="help" href="https://dom.spec.whatwg.org/#concept-getelementsbyclass name">
5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script> 7 <script src="/resources/testharnessreport.js"></script>
7 </head> 8 </head>
8 <body class="a a"> 9 <body class="a a">
9 <div id="log"></div> 10 <div id="log"></div>
10 <script>test(function() { 11 <div class="k"></div>
11 assert_array_equals(document.getElementsByClassName("A a"), 12 <div class="K"></div>
12 [document.documentElement, document.body]); 13 <div class="&#x212a;" id="kelvin"></div>
13 }) 14 <script>
15 test(function() {
16 assert_array_equals(document.getElementsByClassName("A a"),
17 [document.documentElement, document.body]);
18 })
19
20 test(function() {
21 assert_array_equals(document.getElementsByClassName("\u212a"),
22 [document.getElementById("kelvin")]);
23 }, 'Unicode-case should be sensitive even in quirks mode.');
14 </script> 24 </script>
15 </body> 25 </body>
16 </html> 26 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ClassCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698