🚧 under construction
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 ⟩
.innerHTML - replace the content of the element.
.outerHTML - replace the element itself.
.insertAdjacentHTML() - 👉 🗺️ 圖解
nodeValue vs innerHTML and textContent. How to choose?
Last updated 1 year ago