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

Unified Diff: third_party/WebKit/Source/core/dom/ClassCollection.cpp

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 | « third_party/WebKit/Source/core/dom/ClassCollection.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/ClassCollection.cpp
diff --git a/third_party/WebKit/Source/core/dom/ClassCollection.cpp b/third_party/WebKit/Source/core/dom/ClassCollection.cpp
index 4e78bc905f1fbd76a4abfca5eeb642683c1b9205..e44ca17d53269fde9e4b698122f9af2db92015c7 100644
--- a/third_party/WebKit/Source/core/dom/ClassCollection.cpp
+++ b/third_party/WebKit/Source/core/dom/ClassCollection.cpp
@@ -39,11 +39,9 @@ ClassCollection::ClassCollection(ContainerNode& root_node,
: HTMLCollection(root_node,
kClassCollectionType,
kDoesNotOverrideItemAfter),
- class_names_(class_names,
- GetDocument().InQuirksMode()
- ? SpaceSplitString::kShouldFoldCase
- : SpaceSplitString::kShouldNotFoldCase),
- original_class_names_(class_names) {}
+ class_names_(
+ GetDocument().InQuirksMode() ? class_names.LowerASCII() : class_names,
+ SpaceSplitString::kShouldNotFoldCase) {}
ClassCollection::~ClassCollection() {}
« no previous file with comments | « third_party/WebKit/Source/core/dom/ClassCollection.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698