| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index 6c2c41e55a58f0fe993b79b7aafac972865b58a4..a05f1c5d3638ec1af865f6a416947bc52a96ff79 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -1809,7 +1809,7 @@ const Vector<RefPtr<Attr> >& Element::attrNodeList()
|
| PassRefPtr<Attr> Element::setAttributeNode(Attr* attrNode, ExceptionCode& ec)
|
| {
|
| if (!attrNode) {
|
| - ec = TYPE_MISMATCH_ERR;
|
| + ec = TypeMismatchError;
|
| return 0;
|
| }
|
|
|
| @@ -1852,7 +1852,7 @@ PassRefPtr<Attr> Element::setAttributeNodeNS(Attr* attr, ExceptionCode& ec)
|
| PassRefPtr<Attr> Element::removeAttributeNode(Attr* attr, ExceptionCode& ec)
|
| {
|
| if (!attr) {
|
| - ec = TYPE_MISMATCH_ERR;
|
| + ec = TypeMismatchError;
|
| return 0;
|
| }
|
| if (attr->ownerElement() != this) {
|
| @@ -1885,7 +1885,7 @@ bool Element::parseAttributeName(QualifiedName& out, const AtomicString& namespa
|
| QualifiedName qName(prefix, localName, namespaceURI);
|
|
|
| if (!Document::hasValidNamespaceForAttributes(qName)) {
|
| - ec = NAMESPACE_ERR;
|
| + ec = NamespaceError;
|
| return false;
|
| }
|
|
|
| @@ -2449,7 +2449,7 @@ bool Element::matchesReadWritePseudoClass() const
|
| bool Element::webkitMatchesSelector(const String& selector, ExceptionCode& ec)
|
| {
|
| if (selector.isEmpty()) {
|
| - ec = SYNTAX_ERR;
|
| + ec = SyntaxError;
|
| return false;
|
| }
|
|
|
|
|