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


--- 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