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

Re: splitText()

From: Lauren Wood <lauren@sqwest.bc.ca>
Date: Thu, 25 Nov 1999 15:18:57 -0800
Message-Id: <199911252321.PAA22711@mail.sqwest.bc.ca>
To: www-dom@w3.org
On 1 Nov 99, at 17:54, keshlam@us.ibm.com wrote:

> >Am I correct to assume that when splitText() is called on a
> >CDATASection node, the return value (new node created) should be a
> >CDATASection node rather than a simple Text node?
> 
> Good question, and good catch.
> 
> Given that we've now moved splitText down to characterData -- which is also
> the ancestor of Comment -- I think I agree that the description needs to be
> updated. And I think you're probably right about the implication that split
> should create another node of the same type as the node which is being
> split.

Um, we haven't moved splitText at all, it's still on the Text interface. 
Changed the wording to clarify that indeed, splitting a 
CDATASection node should give you a new CDATASection node.


Lauren
Received on Thursday, 25 November 1999 18:24:14 GMT

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