- From: Joseph Kesselman <keshlam@us.ibm.com>
- Date: Mon, 20 Nov 2000 12:32:52 -0500
- To: "'www-dom@w3.org'" <www-dom@w3.org>
A DocumentFragment can never be a child of any other node. If you try to append or insert it, its _children_ are appended/inserted instead. That convenience feature is the main reason DocumentFragment exists... (Anticipating the next likely question: Remember that nodes belong to specific Documents, and may only be appended to that Document. If the DocumentFragment was created as part of one Document, you can _not_ directly append its contents to another Document; you need to use the importNode method or some equivalent.) ______________________________________ Joe Kesselman / IBM Research
Received on Monday, 20 November 2000 12:32:57 UTC