Index: Source/core/inspector/DOMPatchSupport.cpp |
diff --git a/Source/core/inspector/DOMPatchSupport.cpp b/Source/core/inspector/DOMPatchSupport.cpp |
index c2cfcec443a5b4cf039de8ea5f3349ac4472de23..e853b2fc6919aea1b499dee016d4c8eeec226cce 100644 |
--- a/Source/core/inspector/DOMPatchSupport.cpp |
+++ b/Source/core/inspector/DOMPatchSupport.cpp |
@@ -191,7 +191,7 @@ bool DOMPatchSupport::innerPatchNode(Digest* oldDigest, Digest* newDigest, Excep |
// FIXME: Create a function in Element for removing all properties. Take in account whether did/willModifyAttribute are important. |
if (oldElement->hasAttributesWithoutUpdate()) { |
while (oldElement->attributeCount()) { |
- const Attribute& attribute = oldElement->attributeItem(0); |
+ const Attribute& attribute = oldElement->attributeAt(0); |
if (!m_domEditor->removeAttribute(oldElement, attribute.localName(), exceptionState)) |
return false; |
} |