innerText was non-standard, textContent was standardized earlier.
innerText returns the visible text contained in a node, while textContent returns the full text. For example, on the following HTML
<span>Hello <span style="display: none;">World</span></span>
innerText will return 'Hello', while textContent will return 'Hello World'.As a result, innerText is much more performance-heavy: it requires layout information to return the result.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
where is the following HTML Hello World example?
Thanks , I edited It .