W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2002

Re: How to create usable document fragments?

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Fri, 22 Feb 2002 12:50:41 -0500
To: Christopher Birkett <christopherbirkett@yahoo.com>
Cc: www-dom@w3.org
Message-ID: <OF9A3B5EDC.C248F3D3-ON85256B68.0061D93C@pok.ibm.com>

Nodes always belong to a specific document. The closest you can come to
creating nodes before creating the document is to create a temporary
document as a work area, build your nodes there, then use importNode() to
copy them into your final document when it's ready. See
http://www.w3.org/DOM/faq.html#ownerdoc

______________________________________
Joe Kesselman  / IBM Research
Received on Friday, 22 February 2002 12:51:32 GMT

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