Re: DOM Level 2 needs getElementById method

----- 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 UTC