Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

innerText vs visibleText #166

@har79

Description

@har79

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions