[Webkit-unassigned] [Bug 98982] Setting className attribute causes slow performance

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 5 10:38:54 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=98982





--- Comment #8 from Brad Vogel <bradavogel at gmail.com>  2013-04-05 10:37:06 PST ---
In the above example, I was hoping that if the CSS class being added happened to already be on the element, no relayout would occur. A lot of JS libraries are naive and always append the class to the className attribute. Also, a lot of web developers use these libraries to add classes that already exist on the element, usually in a loop (e.g. striping a table). Other attributes such as those set by setAttribute have logic to only dirty the DOM if needed. Fixing className would provide nice symmetry.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list