[whatwg] DOMTokenList and whitespace
sylvain.pasche at gmail.com
Mon Jul 20 14:04:41 PDT 2009
1) What's the reason for preserving whitespace when a DOMTokenList
method is changing the attribute?
2) If preserving whitespace is not important, what about normalizing
whitespace during mutation?
By normalizing whitespace, I mean splitting tokens (keeping unique
ones), doing the DOMTokenList add/remove/toggle operation, and joining
tokens together separated by a whitespace.
I've already implemented the current spec algorithm in Mozilla ,
but normalizing whitespace should simplify things a bit. It would be
interesting to have other implementor's opinion on this.
(Note: this was previously raised in , but it should have been a new thread.)
More information about the whatwg