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:
Name | Type | Description |
---|---|---|
newNode | $dom.Node | DOM node to append |
insertBefore(newNode, referenceNode)
Parameters:
Name | Type | Description |
---|---|---|
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:
Name | Type | Description |
---|---|---|
childNode | $dom.Node | DOM node to remove |