[whatwg] getElementsByIdPart
Christopher Lenz
cmlenz at gmx.de
Tue Aug 24 02:18:08 PDT 2004
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
More information about the whatwg
mailing list