Re: How to create usable document fragments?

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 UTC