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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ClassCollection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/external/wpt/dom/nodes/getElementsByClassName-14.htm
diff --git a/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/getElementsByClassName-14.htm b/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/getElementsByClassName-14.htm
index 77de16298a5d4ca19d9284d53ebefe74d8bc32d3..83addb7ba5d0eb9204a5667ab03a9aa224391cdd 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/getElementsByClassName-14.htm
+++ b/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/getElementsByClassName-14.htm
@@ -2,15 +2,25 @@
<html class="a A">
<head>
<title>document.getElementsByClassName(): case-insensitive (quirks mode)</title>
+ <link rel="help" href="https://dom.spec.whatwg.org/#concept-getelementsbyclassname">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body class="a a">
<div id="log"></div>
- <script>test(function() {
- assert_array_equals(document.getElementsByClassName("A a"),
- [document.documentElement, document.body]);
- })
+ <div class="k"></div>
+ <div class="K"></div>
+ <div class="&#x212a;" id="kelvin"></div>
+ <script>
+test(function() {
+ assert_array_equals(document.getElementsByClassName("A a"),
+ [document.documentElement, document.body]);
+})
+
+test(function() {
+ assert_array_equals(document.getElementsByClassName("\u212a"),
+ [document.getElementById("kelvin")]);
+}, 'Unicode-case should be sensitive even in quirks mode.');
</script>
</body>
</html>
« 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