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 21:11:37 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QzEXx-0003sG-Ue@jessica.w3.org>

--- Comment #3 from Marat Tanalin (tanalin.com) <mtanalin@yandex.ru> 2011-09-01 21:11:37 UTC ---
(In reply to comment #1)

> The performance of classList is an implementation detail.  There's no
> particular reason for it to be slower.

One of major reasons is that consequent adding classes one by one causes
multiple rendering-reflows. (Each reflow is quite time-expensive operation.)

Opposite to this, adding multiple classes at once causes only one reflow.

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 21:11:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:02:03 UTC