[Bug 13999] DOMTokenList (e.g., element.classList): allow to add/remove multiple tokens at once

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13999

Tab Atkins Jr. <jackalmage@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jackalmage@gmail.com

--- Comment #1 from Tab Atkins Jr. <jackalmage@gmail.com> 2011-09-01 20:45:54 UTC ---
What do other libraries do with this?  jQuery only allows a single class to be
added/removed at a time.  Of course, it allows you to chain addClass() calls,
while you can't chain classList.add() calls.  Would it make more sense to
change things so that DOMTokenList returns itself from add/remove/toggle?

The performance of classList is an implementation detail.  There's no
particular reason for it to be slower, except that jQuery doesn't actually
implement the spec (there are a bunch of requirements that you need to be
careful about).

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 1 September 2011 20:45:59 UTC