Index: Source/core/html/DOMTokenList.cpp |
diff --git a/Source/core/html/DOMTokenList.cpp b/Source/core/html/DOMTokenList.cpp |
index 2d5f73f155dee0c4a0bdf0fbe1717d91b3f48682..b03defbe9a48591d03b0388e82789d0d72be1a07 100644 |
--- a/Source/core/html/DOMTokenList.cpp |
+++ b/Source/core/html/DOMTokenList.cpp |
@@ -34,7 +34,7 @@ namespace WebCore { |
bool DOMTokenList::validateToken(const AtomicString& token, ExceptionCode& ec) |
{ |
if (token.isEmpty()) { |
- ec = SYNTAX_ERR; |
+ ec = SyntaxError; |
return false; |
} |