W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2004

[whatwg] getElementsByIdPart

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 10 Nov 2004 23:40:01 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0411102338250.8631@dhalsim.dreamhost.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 10 November 2004 15:40:01 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:20 UTC