Index: Source/core/dom/ClassCollection.cpp |
diff --git a/Source/core/dom/ClassCollection.cpp b/Source/core/dom/ClassCollection.cpp |
index 53534a1d7b14c83a4e72a11d2c778e68e6b1253b..051af1f11549fdd46562fa09105321d19729eff1 100644 |
--- a/Source/core/dom/ClassCollection.cpp |
+++ b/Source/core/dom/ClassCollection.cpp |
@@ -37,7 +37,7 @@ namespace blink { |
ClassCollection::ClassCollection(ContainerNode& rootNode, const AtomicString& classNames) |
: HTMLCollection(rootNode, ClassCollectionType, DoesNotOverrideItemAfter) |
- , m_classNames(classNames, document().inQuirksMode()) |
+ , m_classNames(classNames, document().inQuirksMode() ? SpaceSplitString::ShouldFoldCase : SpaceSplitString::ShouldNotFoldCase) |
, m_originalClassNames(classNames) |
{ |
} |