W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2000

Re: range.surroundContents

From: Jonas Sicking <sicking@bigfoot.com>
Date: Mon, 5 Jun 2000 20:53:48 +0200
Message-ID: <011501bfcf1f$62653940$3110f7d4@Milwork08>
To: <www-dom@w3.org>
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 GMT

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