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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 5 13:16:44 PDT 2013


--- Comment #10 from Erik Arvidsson <arv at chromium.org>  2013-04-05 13:14:56 PST ---
(In reply to comment #9)
> We should already have do-nothing optimization for adding the same class again. Have you verified recently it is not working?

The case that Brad is talking about is changing the class attribute but not in a way that impacts style resolution. For example `element.className += ' '`. This would of course impact `[class='abc']` selectors but I believe we already keep track of attribute selectors.

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