🚧 under construction
browser ⟩ DOM ⟩ type ⟩ Element ⟩ content
When nodeValuearrow-up-right is defined to be null, setting it has no effect.
nodeValue
null
Node ⟩
.textContentarrow-up-right - text content of the node and its descendants.
.nodeValuearrow-up-right - returns/sets the value of the node.
Element ⟩
.innerHTMLarrow-up-right - replace the content of the element.
.outerHTMLarrow-up-right - replace the element itself.
.insertAdjacentHTML()arrow-up-right - 👉 🗺️ 圖解
nodeValue vs innerHTML and textContent. How to choose?arrow-up-right
Last updated 3 years ago