[Webkit-unassigned] [Bug 14955] Implement getElementsByClassName
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 16 16:02:50 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=14955
------- Comment #5 from catfish.man at gmail.com 2007-08-16 16:02 PDT -------
I did a bit of performance testing on this just for fun; Native vs.
prototype.js's xpath version vs. prototype.js's DOM traversal version
native: 303ms
xpath: 5,706ms
js/dom: 26,660ms
:)
I also tried out aroben's second suggestion, but it seemed like a bit of a
wash. Made the getElementsByClassName callsite a little nicer, and the
NamedMappedAttrMap one a little less nice. What about making a regular
constructor that takes a class attribute string and calls through to
parseClassAttribute? Is that sort of minor convenience method generally
considered worthwhile in webkit?
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list