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

Re: getElementsByTagName

From: Philippe Le Hegaret <plh@w3.org>
Date: Thu, 22 Mar 2001 13:02:04 -0500
Message-ID: <3ABA3E1C.ABA0A7A0@w3.org>
To: Paolo Casarini <casarini@CS.UniBO.IT>
Cc: www-dom@w3.org
Paolo Casarini wrote:
> 
> If I have a readonly Document Node, and I call getElementByTagName on it,
> should I return a readonly Nodelist?
> 
> Is this right also for readonly Element Node?

Well, a NodeList is not really readonly. The Nodes contained in the NodeList
can be readonly. If you ask for the childrens of a readonly element node,
they will be readonly by definition [1]. So all the nodes contained in this
NodeList will be read only.

Philippe

[1]
http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/glossary.html#dt-readonly-node
Received on Thursday, 22 March 2001 13:02:05 GMT

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