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: Fri, 02 Sep 2011 06:54:56 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QzNeS-00024H-Ss@jessica.w3.org>

--- Comment #5 from Simon Pieters <simonp@opera.com> 2011-09-02 06:54:55 UTC ---
(In reply to comment #3)
> One of major reasons is that consequent adding classes one by one causes
> multiple rendering-reflows. (Each reflow is quite time-expensive operation.)

I don't think this is true. Reflows are generally batched up and happen only
once when the script is finished doing what it's doing (except in Opera if the
script is taking a long time), unless you force a reflow by asking for layout
with .offsetLeft or so between adding your classes.

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 Friday, 2 September 2011 06:54:58 UTC

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