W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2002

Re: getElementsByName

From: Jonathan Watt <0jaw@qlink.queensu.ca>
Date: Mon, 11 Feb 2002 16:41:34 -0500
Message-Id: <>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: www-dom@w3.org
At 04:20 PM 2/11/2002 -0500, Boris Zbarsky wrote:
> > Can someone clarify the getElementsByName method for me. It appears in 
> DOM1
> > but not in DOM2 or DOM3 WD.
>It's in DOM2 HTML (not DOM Core).  And therefore it is not guaranteed to
>be present for things like SVG.

I see. Thanks Boris.

Can I suggest that getElementsByName would be just as useful in other 
things (as well as HTML). In fact often even more so. In HTML many 
collections already exist, but not so for something like SVG. Hence if I 
create some radio buttons in an SVG document and give them all the same 
name I don't have the advantage of a collection ready made as I would in HTML.

It would be very useful if getElementsByName was moved back to DOM-Core. Is 
there any reason that it was thought to be specific to HTML?

Can I have your thoughts please?


>If you put garbage in a computer nothing comes out but
>garbage.  But this garbage, having passed through a
>very expensive machine, is somehow ennobled and none
>dare criticize it.
Received on Monday, 11 February 2002 16:38:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC