[Webkit-unassigned] [Bug 14955] Implement getElementsByClassName
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 13 00:43:16 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=14955
------- Comment #1 from catfish.man at gmail.com 2007-08-13 00:43 PDT -------
Created an attachment (id=15948)
--> (http://bugs.webkit.org/attachment.cgi?id=15948&action=view)
Preliminary patch to implement getElementsByClassName
This isn't done (no changelog, no testcases and very limited manual testing,
one known wart), but it does work, and is compatible with the Firefox
implementation as far as I know. Feedback is welcome, particularly on the part
that handles parsing the class string. Darin suggested generating a dummy
Element, setting its class, then getting its classList, but I wasn't able to
get that working (and I'm not convinced that it's less nasty than the code
duplication). The current method is copy-pasted from
NamedMappedAttrMap::parseClassAttribute, which is definitely less than ideal.
--
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