documentadoptnode24
IBM
The adoptNode method changes the ownerDocument of a node, its children, as well as the
attached attribute nodes if there are any. If the node has a parent it is first removed
from its parent child list.
For Element Nodes, specified attribute nodes of the source element are adopted, Default
attributes are discarded and descendants of the source element are recursively adopted.
Invoke the adoptNode method on a new document with the first code element node of this
Document as the source. Verify if the node has been adopted correctly by checking the
length of the this elements childNode list before and after.
Neil Delima
2002-06-10