W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > September 2011

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 01 Sep 2011 20:45:57 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QzE97-0002Sp-As@jessica.w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:18 UTC