W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

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

From: Jake Verbaten <raynos2@gmail.com>
Date: Thu, 3 May 2012 08:45:20 +0100
Message-ID: <CAMCMjp1+GGYMq6wUtqbkVYHQ=Q5Ji+KjCHjhr1v1kpW813w52A@mail.gmail.com>
Sidetracking whether chaining is a useful API design or not isn't useful.

Choosing some mechanism to add multiple classes at once is useful, whether
that's making add have an arbitary arity, allow it to take an array, allow
it to take a space seperated string or allowing add calls to be chained.

My personal vote is for arity.
Received on Thursday, 3 May 2012 00:45:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:08 GMT