Re: Errata for Range.insertNode

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 UTC