2 ms·
display:none != visibility:hidden
by hgsgm 4y ago
display:none != visibility:hidden
- tomjakubowski 4y agoThat's true. I'm not sure what you mean though; whether one makes the inner div display: none or visibility: hidden, it doesn't appear to make a difference to the values of innerText vs. textContent
- 6510 4y agoI think he means something like:<p style="display: none;">Not Displayed text</p> <p style="visibility: hidden">Hidden text</p> not <p style="display: none;">Hidden text</p>