You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
The docs for innerText and visibleText aren't very helpful. They state what implementation the text should come from but that, for both, "behaviour may vary". They don't state how it varies, what the purpose of each is, or how they differ.
Is there a reason to ever prefer one over the other? Can one be deprecated?
Additionally, the innerText docs have a few issues:
"text content" is confusing as this is different from the HTML textContent attribute
The docs for
innerTextandvisibleTextaren't very helpful. They state what implementation the text should come from but that, for both, "behaviour may vary". They don't state how it varies, what the purpose of each is, or how they differ.Is there a reason to ever prefer one over the other? Can one be deprecated?
Additionally, the
innerTextdocs have a few issues:textContentattribute