[whatwg] getElementsByIdPart

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