[dom] Exception in DOMTokenList.add() and DOMTokenList.remove() algo
None via GitHub <[email protected]> Mon, 19 Oct 2015 09:39:14 +0000
| Newsgroups | gmane.comp.web.dom.general |
|---|---|
| Message-ID | <[email protected]> |
ArkadiuszMichalski has just created a new issue for = https://github.com/whatwg/dom: =3D=3D Exception in DOMTokenList.add() and DOMTokenList.remove() algo =3D= =3D 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