🚧 under construction
Last updated 2 years ago
Was this helpful?
browser ⟩ DOM ⟩ type ⟩ Element ⟩ content
When nodeValue is defined to be null, setting it has no effect.
nodeValue
null
Node ⟩
.textContent - text content of the node and its descendants.
.nodeValue - returns/sets the value of the node.
Element ⟩
- replace the content of the element.
- replace the element itself.
- 👉 🗺️ 圖解
nodeValue vs innerHTML and textContent. How to choose?