[whatwg] getElementsByIdPart

Ian Hickson ian at hixie.ch
Wed Nov 10 15:40:01 PST 2004


On Sat, 28 Aug 2004, Doron Rosenberg wrote:
>
> People keep asking about getElementsBy{Something}, so having a 
> getElementsByAttribute (I believe Mozilla's XBL impl has a similar 
> beast) would cover all those requests.

Sadly, not all the requests -- it wouldn't, for example, handle the 
request that started this thread.

In general I think the best solution would be either 
getElementsBySelector() (which would be the responsibility of the CSS 
working group, so requests for that should go to www-style at w3.org) or just 
using the NodeIterator interface from DOM2.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list