Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Does not recognize text in shadow DOM #136

@nolanlawson

Description

@nolanlawson

Thank you for writing this library! I may have found an issue, though, with shadow DOM support.

For an element containing a shadow root, e.g.:

<button>
  <x-component>
    #shadow-root
      hello world
  </x-component>
</button>

In this example, the accessible name contains "hello world". But accname does not recognize this text, instead returning an empty string. Here is a minimal repro.
Screen Shot 2022-03-28 at 4 44 57 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions