Index: Source/core/dom/SelectorQuery.cpp |
diff --git a/Source/core/dom/SelectorQuery.cpp b/Source/core/dom/SelectorQuery.cpp |
index 32ed0f30b0b86c7608837975df3f1f731ab591d6..dd0440210c96f53dea60270f778f0b4469d59efc 100644 |
--- a/Source/core/dom/SelectorQuery.cpp |
+++ b/Source/core/dom/SelectorQuery.cpp |
@@ -220,13 +220,13 @@ SelectorQuery* SelectorQueryCache::add(const AtomicString& selectors, Document* |
parser.parseSelector(selectors, selectorList); |
if (!selectorList.first() || selectorList.hasInvalidSelector()) { |
- ec = SYNTAX_ERR; |
+ ec = SyntaxError; |
return 0; |
} |
- // throw a NAMESPACE_ERR if the selector includes any namespace prefixes. |
+ // throw a NamespaceError if the selector includes any namespace prefixes. |
if (selectorList.selectorsNeedNamespaceResolution()) { |
- ec = NAMESPACE_ERR; |
+ ec = NamespaceError; |
return 0; |
} |