DOM getElementsByAttribute

I frequently encounter circumstances where it would be convenient to 
have a getElementsByAttribute method.
getElementsByAttribute(attribute, value)
would return a (possibly empty) list of elements with the attribute 
matching value.
I get several questions per day from DHTML developers wishing they could 
do this. Is there a good alternative in this DOM draft?
-- 
dilvie's websites:
http://www.minutejs.com/ - generate custom javascript
http://www.minutejs.com/forum/ - DHTML discussions
http://www.dilvie.com - listen to my original music

Received on Monday, 24 March 2003 17:06:45 UTC

AltStyle によって変換されたページ (->オリジナル) /