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

[whatwg] getElementsByIdPart

From: Christopher Lenz <cmlenz@gmx.de>
Date: Tue, 24 Aug 2004 11:18:08 +0200
Message-ID: <83642600-F5AE-11D8-8420-000A95B24066@gmx.de>
Am 21.08.2004 um 21:03 schrieb Ian Hickson:
> On Sat, 24 Jul 2004 chriswa at comcast.net wrote:
>>
>> It would be nice if you can add an API to that permit you to get
>> elements based on part of the Id name.  This would permit you to 
>> create
>> classes of controls in JavaScript.
>
> I've added a getElementsByClass() method to the Web Apps spec draft 
> which
> is probably a more semantically correct solution:
>
>    http://whatwg.org/specs/web-apps/current-work/#selecting

It looks wrong to add that to the core Document/Element interfaces, as 
there's no magic 'class' attribute in XML (AFAIK). Shouldn't this 
method be added to HTMLDocument and HTMLElement instead?

Cheers, Chris
--
Christopher Lenz
/=/ cmlenz at gmx.de
Received on Tuesday, 24 August 2004 02:18:08 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:36 UTC