documentadoptnode21
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.
Invoke the adoptNode method on this Document with the source node being an existing attribute
that is a part of this Document. Verify that the returned adopted node's nodeName, nodeValue
and nodeType are as expected and that the ownerElement attribute of the returned attribute node
was set to null.
Neil Delima
2002-06-10