[whatwg] DOMTokenList methods would be more useful with a space separated token list
ayg at aryeh.name
Fri Oct 28 09:42:15 PDT 2011
On Fri, Oct 28, 2011 at 12:07 PM, Mike Taylor
<michaelaarontaylor at gmail.com> wrote:
> I would prefer if it returned the DOMTokenList, to enable chaining like:
> foo.toggle('bar baz').remove('bat');
> Same for the rest of the DOMTokenList methods, as well.
> See also https://github.com/jquery/standards/issues/13 for relevant
This is not how existing DOM methods tend to behave, but in general I
support adding it in more places, because it's very useful for methods
that mutate the object they're called on.
More information about the whatwg