| Index: Source/core/dom/NamedNodeMap.cpp
|
| diff --git a/Source/core/dom/NamedNodeMap.cpp b/Source/core/dom/NamedNodeMap.cpp
|
| index 24e787b7246ff346af2a303ba0954cba438bb4c7..6bce7783b46d462c8759e48802c6476ce87b23a4 100644
|
| --- a/Source/core/dom/NamedNodeMap.cpp
|
| +++ b/Source/core/dom/NamedNodeMap.cpp
|
| @@ -64,7 +64,7 @@ PassRefPtr<Node> NamedNodeMap::removeNamedItem(const AtomicString& name, Excepti
|
| {
|
| size_t index = m_element->hasAttributes() ? m_element->getAttributeItemIndex(name, shouldIgnoreAttributeCase(m_element)) : kNotFound;
|
| if (index == kNotFound) {
|
| - es.throwDOMException(NotFoundError);
|
| + es.throwUninformativeAndGenericDOMException(NotFoundError);
|
| return 0;
|
| }
|
| return m_element->detachAttribute(index);
|
| @@ -74,7 +74,7 @@ PassRefPtr<Node> NamedNodeMap::removeNamedItemNS(const AtomicString& namespaceUR
|
| {
|
| size_t index = m_element->hasAttributes() ? m_element->getAttributeItemIndex(QualifiedName(nullAtom, localName, namespaceURI)) : kNotFound;
|
| if (index == kNotFound) {
|
| - es.throwDOMException(NotFoundError);
|
| + es.throwUninformativeAndGenericDOMException(NotFoundError);
|
| return 0;
|
| }
|
| return m_element->detachAttribute(index);
|
| @@ -83,13 +83,13 @@ PassRefPtr<Node> NamedNodeMap::removeNamedItemNS(const AtomicString& namespaceUR
|
| PassRefPtr<Node> NamedNodeMap::setNamedItem(Node* node, ExceptionState& es)
|
| {
|
| if (!node) {
|
| - es.throwDOMException(NotFoundError);
|
| + es.throwUninformativeAndGenericDOMException(NotFoundError);
|
| return 0;
|
| }
|
|
|
| // Not mentioned in spec: throw a HIERARCHY_REQUEST_ERROR if the user passes in a non-attribute node
|
| if (!node->isAttributeNode()) {
|
| - es.throwDOMException(HierarchyRequestError);
|
| + es.throwUninformativeAndGenericDOMException(HierarchyRequestError);
|
| return 0;
|
| }
|
|
|
|
|