Re: range.surroundContents

Joe Kesselman wrote:

> > Also, the CR says that all children of the new node should be deleted
> > before
> > the node is inserted. Couldn't it be useful to allow attribute nodes to
> >remain.
>
> The DOM doesn't consider Attrs to be children. Unless I'm missing
> something, they shouldn't be affected.

Sorry, you're right about that.

But I still havn't got any answer to my first question; Why is an exception
raised when doing surroundContents on the following tree (* marks range
start and end):

<FOO>A*B<BAR>C*D</BAR>E</FOO>

(see longer explaination in my previous post)

/ Jonas Sicking

Received on Monday, 5 June 2000 14:53:10 UTC