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

RE: adding DocumentFragment to a Node

From: Tom Otvos <tom.otvos@pervasive.com>
Date: Wed, 7 Apr 1999 15:31:19 -0400
Message-ID: <21CB807F517ED21192CE00805FBBCBD40F79D2@tormail1.tor.pervasive.com>
To: "'www-dom@w3.org'" <www-dom@w3.org>
I need to reopen this topic briefly.  The spec is a little vague about node
ownership where DocFrag's are concerned.  For appendChild, it clearly says
that nodes are *moved* to the destination node, whereas for insertBefore, it
just says that the frag's children are inserted.  Am I right in assuming
that nodes are moved in both cases?

Tom Otvos
Director of Research, Pervasive Software Inc.
"Try not! Do, or do not. There is no 'try'." - Yoda

> -----Original Message-----
> From: www-dom-request@w3.org 
> [mailto:www-dom-request@w3.org]On Behalf Of
> Don Park
> Sent: Wednesday, November 04, 1998 2:00 PM
> To: DOM Lis
> Subject: Re: adding DocumentFragment to a Node
> As Joe pointed out, you are assuming that the original 
> DocumentFragment is
> destroyed within insertBefore.  There is no concept of 
> destruction in DOM
> API, only removal and abandonment.
> The DOM spec will not make sense all the time because 
> sentences were added
> and removed by many editors in their effort to clarify [or 
> weasel out].
> Don Park
> Docuverse
> ]
Received on Wednesday, 7 April 1999 15:34:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:05 UTC