$dom. Node

new $dom.Node()

Members

(static, constant) CDATA_SECTION_NODE :number

Type:
  • number

(static, constant) COMMENT_NODE :number

Type:
  • number

(static, constant) DOCUMENT_FRAGMENT_NODE :number

Type:
  • number

(static, constant) DOCUMENT_NODE :number

Type:
  • number

(static, constant) DOCUMENT_TYPE_NODE :number

Type:
  • number

(static, constant) ELEMENT_NODE :number

Type:
  • number

(static, constant) PROCESSING_INSTRUCTION_NODE :number

Type:
  • number

(static, constant) TEXT_NODE :number

Type:
  • number

(readonly) beginIndex

Non-standard extension: The first index in the source of this node at parse time

(readonly) childNodes

(readonly) endIndex

Non-standard extension: The end index in the source of this node at parse time

(readonly) firstChild

(readonly) lastChild

(readonly) lineNumber

Non-standard extension: The line number in the source of this node

(readonly) nextSibling

(readonly) nodeName

(readonly) nodeType

(readonly) nodeValue

(readonly) ownerDocument

(readonly) parentNode

(readonly) previousSibling

textContent

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