W3C home > Mailing lists > Public > www-dom@w3.org > October to December 1999

Re: DOM Level 2 needs getElementById method

From: Takuki Kamiya <kamiya@rp.open.cs.fujitsu.co.jp>
Date: Thu, 7 Oct 1999 10:50:06 +0900
Message-ID: <019c01bf1066$47c33fb0$866e230a@sysrap.cs.fujitsu.co.jp>
To: <www-dom@w3.org>
"Michael Champion" <michael_champion@ameritech.net> writes:

> This is a semi-official Software AG response to the "Last Call" for comments
> on DOM Level 2:  [I apologize to the WG for not raising this before the Last
> Call draft, but we agreed at the August meeting to take this to e-mail to
> figure out a solution for for Level 2; that discussion never happened, and
> since I was travelling for most of the rest of August I did not notice.]
> 
> We believe that it is important to have a method in DOM Level 2 to get an
> element by the value of its ID attribute.  There is a getElementById()
> method for HTML in DOM Level 1, and this is also needed by XML developers.
> Several DOM implementations, including Microsoft's widely used one, have
> such a method, and its lack in DOM Level 1 is often noted.
> 

I have been desperate for such a feature in DOM and concur it falls into
the category of information which many apps in general will aspire for through
pure DOM (as opposed to proprietary DOM).

I'd like to point out that while getElementById() provides "a way of searching
node given an known id", "a way of discovering id" of an element is also
equally in need. (the name of which is, e.g. getIdAttributeName() )

= Takuki Kamiya  Phone: (045)476-4586 Fax: (045)476-4749   =
= FUJITSU LIMITED (COINS:7128-4217 NIFTY:HHA01731)         =
Received on Wednesday, 6 October 1999 21:52:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:46 GMT