newChild
to the end of the list of children of this node. If the newChild
is already in the tree, it is first removed.
@param newChild The node to add.If it is a DocumentFragment
object, the entirecontents of the document fragment are moved into the child list of this node
@return The node added.
@throws DOMException HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does notallow children of the type of the newChild
node, or if the node to append is one of this node's ancestors or this node itself. newChild
was created from a different document than the one that created this node.
|
|
|
|
|
|