| Index: Source/core/dom/DOMTokenList.cpp
|
| diff --git a/Source/core/dom/DOMTokenList.cpp b/Source/core/dom/DOMTokenList.cpp
|
| index a907c784491f5238006c21b30a35845ac56e2569..71a123a4b77f23aee2a78972f1afb2f8b2b9ed2f 100644
|
| --- a/Source/core/dom/DOMTokenList.cpp
|
| +++ b/Source/core/dom/DOMTokenList.cpp
|
| @@ -35,14 +35,14 @@ namespace WebCore {
|
| bool DOMTokenList::validateToken(const AtomicString& token, ExceptionState& es)
|
| {
|
| if (token.isEmpty()) {
|
| - es.throwDOMException(SyntaxError);
|
| + es.throwUninformativeAndGenericDOMException(SyntaxError);
|
| return false;
|
| }
|
|
|
| unsigned length = token.length();
|
| for (unsigned i = 0; i < length; ++i) {
|
| if (isHTMLSpace<UChar>(token[i])) {
|
| - es.throwDOMException(InvalidCharacterError);
|
| + es.throwUninformativeAndGenericDOMException(InvalidCharacterError);
|
| return false;
|
| }
|
| }
|
|
|