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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 5 07:22:42 PDT 2013


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





--- Comment #7 from Erik Arvidsson <arv at chromium.org>  2013-04-05 07:20:55 PST ---
(In reply to comment #5)
> Yes, this is extremely useful. A lot of Javascript libraries implement a naive addClass() function like:
> function addClass(newClass){
>      element.className = element.className + ' ' + newClass;
> }

This case will always be slow since it is always changing the attribute and the list.

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