Index: third_party/WebKit/Source/core/dom/Element.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp |
index cdd30388ab6e0fcec2c79b5af31d6fcd7d287b81..e785c06dfc53d2423487e8af18cf389fe9095aa8 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.cpp |
+++ b/third_party/WebKit/Source/core/dom/Element.cpp |
@@ -2201,7 +2201,7 @@ PassRefPtrWillBeRawPtr<Attr> Element::removeAttributeNode(Attr* attr, ExceptionS |
synchronizeAttribute(attr->qualifiedName()); |
- size_t index = elementData()->attributes().findIndex(attr); |
+ size_t index = elementData()->attributes().findIndex(attr->qualifiedName()); |
if (index == kNotFound) { |
exceptionState.throwDOMException(NotFoundError, "The attribute was not found on this element."); |
return nullptr; |