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: <5.1.0.14.0.20020211162840.00a25030@qlink.queensu.ca>
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?

Jonathan.

>Boris
>-----------------
>617-864-9910
>-----------------
>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 GMT

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