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

Unified Diff: Source/core/dom/ElementData.cpp

Issue 316583002: Correctly handle accessing a replaced Attr object's attribute value. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
Index: Source/core/dom/ElementData.cpp
diff --git a/Source/core/dom/ElementData.cpp b/Source/core/dom/ElementData.cpp
index dbd47f0fdacdd821daa0551b70e00f9a4a1fa55f..10d006f75a452eb10f2cd7e5b45b3c9ec32ca344 100644
--- a/Source/core/dom/ElementData.cpp
+++ b/Source/core/dom/ElementData.cpp
@@ -215,11 +215,11 @@ PassRefPtr<ShareableElementData> UniqueElementData::makeShareableCopy() const
return adoptRef(new (slot) ShareableElementData(*this));
}
-Attribute* UniqueElementData::getAttributeItem(const QualifiedName& name)
+Attribute* UniqueElementData::getAttributeItem(const QualifiedName& name, bool shouldIgnoreCase)
{
unsigned length = this->length();
for (unsigned i = 0; i < length; ++i) {
- if (m_attributeVector.at(i).name().matches(name))
+ if (m_attributeVector.at(i).name().matchesPossiblyIgnoringCase(name, shouldIgnoreCase))
return &m_attributeVector.at(i);
}
return 0;

Powered by Google App Engine
This is Rietveld 408576698