1
Property Name | Description |
---|---|
attributes | array of the element's attributes |
childNodes | NodeList of this node's children |
firstChild | first child of this node |
lastChild | last child of this node |
localName | the part of the node's qualified name after the colon |
namespaceURI | namespace URI of the node |
nextSibling | node immediately following this node at the same level of the tree structure |
nodeName | name of this node |
nodeType | type of this node |
nodeValue | value of this node |
ownerDocument | root document element of this node |
parentNode | immediate parent of this node |
prefix | namespace prefix of the node |
prefix | namespace prefix of the node |
previousSibling | node immediately before this node at the same level of the tree structure |
Method Name | Description | Values |
---|---|---|
cloneNode() | Returns a copy of the element. If deep = true, then all of the node's descendants are copied also. | |
hasAttributes() | Returns whether the node has any attributes. | |
hasChildNodes() | Returns whether the node has any children. | |
insertBefore() | Inserts a new node before the specified existing node, or as the last child if existingNode is not specified. | |
isSupported() | Returns whether the DOM implementation implements a specific feature and that feature is supported by this node. | |
normalize() | Merges adjacent Text nodes that are children of this element into one Text node. | |
removeChild() | Removes the given child node from this node. | |
replaceChild() | Replaces an existing child of this node with a new child node |