[whatwg] DOMTokenList methods would be more useful with a space separated token list

Tab Atkins Jr. jackalmage at gmail.com
Fri Oct 28 13:57:25 PDT 2011


On Fri, Oct 28, 2011 at 1:55 PM, Ojan Vafai <ojan at chromium.org> wrote:
> I agree in general. Changing add/remove is definitely worth doing. In the
> case of toggle, WebKit already returns a boolean. Returning the DOMTokenList
> is clearly preferable IMO. It's a new enough API that maybe the web doesn't
> yet depend on the return value of toggle?

I know that I, at least, assumed that it was horrible like every other
DOM API and just returned undefined, so I've certainly never depended
on it.

~TJ



More information about the whatwg mailing list