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.


Received on Thursday, 22 March 2001 13:02:05 UTC

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