Property | Description |
---|---|
nodeName | Returns the name for current node. This value is read only and cannot be set. |
nodeValue | Returns the value for current node. This value is read only and cannot be set. |
nodeType | Returns an integer value representing the node's type. The integer is assigned to a constant according to the following:
1 = ELEMENT_NODE |
parentNode | Returns the parent of the current node. All nodes, except Document, DocumentFragment, and Attr may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this is null. |
childNodes | Returns a NodeList containing all children of the current node. |
firstChild | Returns the first child of the current node. A null is returned if there is no child node. |
lastChild | Returns the first child of the current node. A null is returned if there is no child node. |
previousSibling | Returns the node immediately preceding the current node, or null if none exists. |
nextSibling | Returns the node immediately following the current node, or null if none exists. |
attributes | Returns a NamedNodeMap containing the attributes of the current node. |
ownerDocument | Returns the Document object associated with the current node. |