The Node Interface
The node interface is the key interface of DOM. Everything in a document can be considered a node, including the document itself. Because of its importance, the node interface is examined in some detail in this section.
Here are the read-only attributes of the node interface:
nodeName
nodeValue
nodeType
parentNode
childNodes
firstChild
lastChild
previousSibling
nextSibling
attributes
ownerDocument
Here are the methods of the node interface:
insertBefore()
replaceChild()
removeChild()
appendChild()
hasChildNodes()
cloneNode()
Note that all these attributes and methods are case-sensitive.
Attributes of the Node Interface
The node interface contains the most attributes and methods of all ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access