W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2002

Text::replaceWholeText Query

From: Pavithran <pavithran.a@ap.sony.com>
Date: Fri, 31 May 2002 09:51:23 +0530
Message-ID: <008a01c2085a$9fb5dd10$8401a8c0@pavithrana>
To: <www-dom@w3.org>

----- Original Message ----- 
From: bharathi 
To: Pavithran 
Sent: Monday, October 28, 2002 9:51 AM
Subject: Text::replaceWholeText Query

     I have a query regarding replaceWholeText method of Text interface. According to my understanding a node is readonly if it is an Entity or 
EntityReference or 
descendant of Entity or 
descendant of EntityReference.
Description of replaceWholeText says NO_MODIFICATION_ALLOWED_ERR is raised if one of the Text nodes being replaced is readonly. It also says when the current node is a readonly node, create a new node of the same type as the current node inserted at the site of the replacement. It is not clear what to do when replaceWholeText is called on Text or CDATASection node, whose ancestor is EntityReference.Should I throw an exception or create a node of appropriate type?
Thanks in advance
Received on Sunday, 1 December 2002 23:17:25 UTC

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