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
Christopher Thai -
Sebastián Aliaga -
Vishal Yadav -
zahidh1626 -
Top comments (0)