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

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

Received on Friday, 28 October 2011 13:57:25 UTC