[Webkit-unassigned] [Bug 70925] New: Element.prototype.classList is not cached

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 26 07:43:28 PDT 2011


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

           Summary: Element.prototype.classList is not cached
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: raynos2 at gmail.com


Accessing the classList property of an element is slow, however caching that classList object and re-using it is relatively fast.

The caching of the DOMTokenList that classList returns should be safe and would allow for a noticeable performance increase.

Exemplar benchmark : http://jsperf.com/cowbell-css-styles/2

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