๐Node
browser โฉ DOM โฉ type โฉ Node
instance properties
parentNode (Node | null)
parentElement (Element | null)
childNodes (NodeList) - live NodeList include elements, text and comments.
firstChild (Node | null)
nextSibling (Node | null)
previousSibling (Node | null)
nodeType (Integer) - Element (1), Text (3), Comment (8), Document (9).
nodeValue (String | null) - textual content of a node.
nodeName (String) - = Element.tagName if it's an HTML element.
Element - subclass.
MDN โฉ EventTarget โฉ Node
node.textContent vs elem.innerHTML vs htmlElem.innerText
Last updated
Was this helpful?