innerText returns the visible text contained in a node only, where textContent returns the full text.
<span>Hello <span style="display: none;">World</span></span>
innerText will return 'Hello'
textContent will return 'Hello World'
innerText returns the visible text contained in a node only, where textContent returns the full text.
<span>Hello <span style="display: none;">World</span></span>
innerText will return 'Hello'
textContent will return 'Hello World'
For further actions, you may consider blocking this person and/or reporting abuse
Dipon Mitra -
Rijul Rajesh -
Aarav Joshi -
Randolph Palmer -
Top comments (0)