Last updated 2 years ago
Was this helpful?
browser ⟩ DOM ⟩ type ⟩ Node
instance properties
parentNode (Node | null)
parentElement (Element | null)
() - live NodeList include , text and comments.
( | null)
(Integer) - Element (1), Text (3), Comment (8), Document (9).
(String | null) - textual content of a node.
(String) - = if it's an HTML element.
$(), $all()
NodeList
Element - subclass.
MDN ⟩ EventTarget ⟩ Node
Filter or map nodelists in ES6
Node ⟩ . - gets the content of all elements, including and elements. (prevent )
Element ⟩ . - returns HTML.
HTMLElement ⟩ . - innerText takes CSS styles into account.
innerText
前端筆記 ⟩
codepen ⟩
<script>
<style>