[dom] Exception in DOMTokenList.add() and DOMTokenList.remove() algo

ArkadiuszMichalski has just created a new issue for 
https://github.com/whatwg/dom:

== Exception in DOMTokenList.add() and DOMTokenList.remove() algo ==
I don't see (test Firefox and Chrome) that any of this two kind of 
exception is more important, what actual algorithms suggest. Maybe 
change add() to:

1. For each token in tokens, in given order, run these substeps: 
1.1 If token is the empty string, throw a SyntaxError exception.
1.2 If token contains any ASCII whitespace, then throw an 
InvalidCharacterError exception.
1.3  If token is not in tokens, append token to tokens. 
2. Run the update steps. 

and similarly for remove().

See https://github.com/whatwg/dom/issues/93

Received on Monday, 19 October 2015 09:39:20 UTC