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

Re: getElementsByTagName

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Wed, 21 Mar 2001 11:27:23 -0500
To: www-dom@w3.org
Message-ID: <OFA235757B.47547930-ON85256A16.0059FB7E@pok.ibm.com>

>If I have a readonly Document Node

At this time, there is no way to make a Document node readonly using the
standard DOM API. The only readonly nodes we currently support are those
within the scope of an EntityReference.

You could have a readonly Element node, of course.

>and I call getElementByTagName on it,
>should I return a readonly Nodelist?

There's no such thing as a writable NodeList (NodeLists can only be changed
by changing the source document), so the question isn't meaningful. Of
course the nodes within the NodeList are the same Node objects that appear
in the DOM tree, and hence may themselves be readonly.

Joe Kesselman  / IBM Research
Received on Wednesday, 21 March 2001 11:27:26 UTC

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