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

[whatwg] getElementsByIdPart

From: Doron Rosenberg <doronr@gmail.com>
Date: Tue, 27 Jul 2004 23:08:58 -0200
Message-ID: <6814aebd04072718082fe3875c@mail.gmail.com>
You could use XPATH to do that.  Mozilla for example supports running
XPATH on documents.

On Sat, 24 Jul 2004 06:19:39 +0000, chriswa at comcast.net
<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.
> 
> For example ASP.NET labels the id of controls as ControlOuter1_ControlInner1_element.  If use such an API I can obtain all the elements of ControlOuter1 then all the elements of ControlInner1.  Thus I can build a control heirarchy in JavaScript.
> 
> Currently I use indexOf but it would be faster and more efficient if there was such an API of the DOM that supplies that information.
> 
> Thanks,
> Chriswa
>
Received on Tuesday, 27 July 2004 18:08:58 UTC

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