| Index: Source/core/dom/NamedNodeMap.cpp
|
| diff --git a/Source/core/dom/NamedNodeMap.cpp b/Source/core/dom/NamedNodeMap.cpp
|
| index 1e2d0223c7c43f46e8a16bd890d32357290683aa..24e787b7246ff346af2a303ba0954cba438bb4c7 100644
|
| --- a/Source/core/dom/NamedNodeMap.cpp
|
| +++ b/Source/core/dom/NamedNodeMap.cpp
|
| @@ -62,8 +62,8 @@ PassRefPtr<Node> NamedNodeMap::getNamedItemNS(const AtomicString& namespaceURI,
|
|
|
| PassRefPtr<Node> NamedNodeMap::removeNamedItem(const AtomicString& name, ExceptionState& es)
|
| {
|
| - size_t index = m_element->hasAttributes() ? m_element->getAttributeItemIndex(name, shouldIgnoreAttributeCase(m_element)) : notFound;
|
| - if (index == notFound) {
|
| + size_t index = m_element->hasAttributes() ? m_element->getAttributeItemIndex(name, shouldIgnoreAttributeCase(m_element)) : kNotFound;
|
| + if (index == kNotFound) {
|
| es.throwDOMException(NotFoundError);
|
| return 0;
|
| }
|
| @@ -72,8 +72,8 @@ PassRefPtr<Node> NamedNodeMap::removeNamedItem(const AtomicString& name, Excepti
|
|
|
| PassRefPtr<Node> NamedNodeMap::removeNamedItemNS(const AtomicString& namespaceURI, const AtomicString& localName, ExceptionState& es)
|
| {
|
| - size_t index = m_element->hasAttributes() ? m_element->getAttributeItemIndex(QualifiedName(nullAtom, localName, namespaceURI)) : notFound;
|
| - if (index == notFound) {
|
| + size_t index = m_element->hasAttributes() ? m_element->getAttributeItemIndex(QualifiedName(nullAtom, localName, namespaceURI)) : kNotFound;
|
| + if (index == kNotFound) {
|
| es.throwDOMException(NotFoundError);
|
| return 0;
|
| }
|
|
|