Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

innerText vs visibleText #166

Open
har79 opened this issue Nov 28, 2018 · 0 comments
Open

innerText vs visibleText #166

har79 opened this issue Nov 28, 2018 · 0 comments

Comments

@har79
Copy link
Contributor

har79 commented Nov 28, 2018

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 link is broken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant