javascript/webapi/node/textContent

textContent

dz / javascript / webapi / node / textContent

Node Tree

Nodes

vs_innerText
content textContent gets/sets all text content, including hidden elements. innerText is more aware of styling and won't return text of hidden elements.
parents javascript/webapi/HTML_DOM/HTMLElement/innerText
hyperlink https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent#differences_from_innertext
location knowledge/javascript.dz:230