newChild
to the end of the list of children of this node.
@param newChild the Node
to insert.
@return the node added.
@exception IllegalArgumentException if newChild
isnull
.
newChild
to the end of the list of children of this node.
@param newChild the Node
to insert.
@return the node added.
@exception IllegalArgumentException if newChild
isnull
.
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 entire contents of the document fragment are moved into the child list of this node
@return The node added.
@exception DOMException HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow 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, or if this node is of type Document
and the DOM application attempts to append a second DocumentType
or Element
node. newChild
was created from a different document than the one that created this node. newChild
node is a child of the Document
node, this exception might be raised if the DOM implementation doesn't support the removal of the DocumentType
child or Element
child.
@since DOM Level 3
Converts a string to a text node and appends that node to the children of this node.
@param text String to add to this node @throws IllegalAddException if this node cannot have children of this type @throws NullPointerException iftext
is null
Appends a node to the children of this node.
@param child node to append to this node @throws IllegalAddException if this node cannot have children of this type @throws MultipleParentException if child already has a parent @throws NullPointerException ifchild
is null
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. By default we do not accept any children, ParentNode overrides this. @see ParentNode @returns newChild, in its new state (relocated, or emptied in thecase of DocumentNode.) @throws DOMException (HIERARCHY_REQUEST_ERR) if newChild is of a type that shouldn't be a child of this node. @throws DOMException (WRONG_DOCUMENT_ERR) if newChild has a different owner document than we do. @throws DOMException (NO_MODIFICATION_ALLOWED_ERR) if this node is read-only.
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 entire contents of the document fragment are moved into the child list of this node
@return The node added.
@exception DOMException HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the newChild
node, or if the node to append is one of this node's ancestors. newChild
was created from a different document than the one that created this node.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|