Node is an abstract class that is inherited by Element, Text and Comment classes.
node.nodeName
- read-onlynode.nodeType
- read-onlynode.nodeValue
- value of the current nodenode.nodeIndex
- read-onlynode.childNodes
- read-only, returns a nodeList containing all childrennode.firstChild
- read-onlynode.lastChild
- read-onlynode.nextSibling
- read-onlynode.previousSibling
- read-onlynode.ownerDocument
- read-onlynode.parentNode
- read-onlynode.parentElement
- read-onlynode.parentWindow
- instance of Window that hosts this node;node.textContent
- textual content of an element and all its descendants
node.cloneNode()
node.contains()
node.compareDocumentPosition()
- not yetnode.getRootNode()
node.hasChildNodes(): bool
node.isEqualNode(): bool
node.isSameNode(): bool
node.remove()
The Text represents html text nodes.
text.data
read/writetext.length
read-onlytext.wholeText
read-only
The Comment represents html comment nodes.
comment.data
read/writecomment.length
read-only