| Index: Source/core/dom/NamedNodeMap.cpp
|
| diff --git a/Source/core/dom/NamedNodeMap.cpp b/Source/core/dom/NamedNodeMap.cpp
|
| index 7ad71811e9b157d411f202bf23fd0e76cec17352..398742db085596a427a8f4cb1205447b509d7e5e 100644
|
| --- a/Source/core/dom/NamedNodeMap.cpp
|
| +++ b/Source/core/dom/NamedNodeMap.cpp
|
| @@ -58,7 +58,7 @@ PassRefPtrWillBeRawPtr<Node> NamedNodeMap::getNamedItemNS(const AtomicString& na
|
|
|
| PassRefPtrWillBeRawPtr<Node> NamedNodeMap::removeNamedItem(const AtomicString& name, ExceptionState& exceptionState)
|
| {
|
| - size_t index = m_element->hasAttributes() ? m_element->findAttributeIndexByName(name, m_element->shouldIgnoreAttributeCase()) : kNotFound;
|
| + size_t index = m_element->hasAttributes() ? m_element->attributes().findIndex(name, m_element->shouldIgnoreAttributeCase()) : kNotFound;
|
| if (index == kNotFound) {
|
| exceptionState.throwDOMException(NotFoundError, "No item with name '" + name + "' was found.");
|
| return nullptr;
|
| @@ -68,7 +68,7 @@ PassRefPtrWillBeRawPtr<Node> NamedNodeMap::removeNamedItem(const AtomicString& n
|
|
|
| PassRefPtrWillBeRawPtr<Node> NamedNodeMap::removeNamedItemNS(const AtomicString& namespaceURI, const AtomicString& localName, ExceptionState& exceptionState)
|
| {
|
| - size_t index = m_element->hasAttributes() ? m_element->findAttributeIndexByName(QualifiedName(nullAtom, localName, namespaceURI)) : kNotFound;
|
| + size_t index = m_element->hasAttributes() ? m_element->attributes().findIndex(QualifiedName(nullAtom, localName, namespaceURI)) : kNotFound;
|
| if (index == kNotFound) {
|
| exceptionState.throwDOMException(NotFoundError, "No item with name '" + namespaceURI + "::" + localName + "' was found.");
|
| return nullptr;
|
|
|