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

Re: DOM Level 2 needs getElementById method

From: Michael Champion <michael_champion@ameritech.net>
Date: Tue, 5 Oct 1999 19:06:11 -0400
Message-ID: <007101bf0f8c$6dc665a0$061d12d1@mccdell>
To: <www-dom@w3.org>

----- Original Message -----
From: David Brownell <david-b@pacbell.net>
To: Michael Champion <mike.champion@sagus.com>
Cc: <www-dom@w3.org>
Sent: Tuesday, October 05, 1999 5:08 PM
Subject: Re: DOM Level 2 needs getElementById method


> > So, I'm suggesting that to the Document interface, add the method
> >
> > Element getElementById(in DOMString elementId)
> > "Returns the Element whose ID is given by elementId.  If no such element
> > exists, return null.  Behavior is not defined if more than one element
has
> > the id."
> >
> > So, do people on this list support this idea?
>
> Yes -- I've made such proposals myself, too.  There's a method naming
> issue, it can't reuse the name from the HTML DOM since it's got a
> different return type, but that's fixable.

Hmmm ... I'd checked the HTML DOM spec, and the return type is Element, just
like my proposal.  What is the method naming issue?

Mike
Received on Tuesday, 5 October 1999 19:51:53 GMT

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