$dom. Node

new Node()

Members

(static) CDATA_SECTION_NODE

(static) COMMENT_NODE

(static) DOCUMENT_FRAGMENT_NODE

(static) DOCUMENT_NODE

(static) DOCUMENT_TYPE_NODE

(static) ELEMENT_NODE

(static) PROCESSING_INSTRUCTION_NODE

(static) TEXT_NODE

Methods

appendChild(newNode)

Parameters:
NameTypeDescription
newNode$dom.Node

DOM node to append

insertBefore(newNode, referenceNode)

Parameters:
NameTypeDescription
newNode$dom.Node

DOM node to append

referenceNode$dom.Node

The node before which newNode is inserted

remove()

removes the object from the tree it belongs to.

removeChild(childNode)

removes a child node from the DOM and returns the removed node

Parameters:
NameTypeDescription
childNode$dom.Node

DOM node to remove