W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2008

Re: Errata for Range.insertNode

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Mon, 25 Aug 2008 11:50:48 +0300
Message-ID: <48B27268.5040108@helsinki.fi>
To: Joćo Eiras <joao.eiras@gmail.com>
CC: Patrik Dufresne <ikus060@gmail.com>, www-dom@w3.org



Joćo Eiras wrote:
> I don't see any problem with that after reading the spec.
> The node is inserted on the document.
> http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level-2-Range-Inserting-h2
> "The node is inserted at the start boundary-point of the Range"

But be careful when range in collapsed - boundaries don't get updated then.
See all the messages in the thread 
http://lists.w3.org/Archives/Public/public-webapi/2008May/0183.html


> 
> On Sun, Aug 24, 2008 at 6:45 PM, Patrik Dufresne <ikus060@gmail.com> wrote:
>> Hi,
>>
>> I'm working on implementation of Range interface and create a test suite for
>> this interface. By reading the Technical recommendation about Traversal and
>> range Level 2, I identify a missing information.
>>
>> Witch exception must be raise when the node given to insertNode function
>> doesn't have any parent ?
>>
>>   Patrik Dufresne
>>
>>
>>
> 
> 
Received on Monday, 25 August 2008 08:53:38 GMT

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