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'