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

Does not recognize text in shadow DOM #136

Open
nolanlawson opened this issue Mar 28, 2022 · 1 comment
Open

Does not recognize text in shadow DOM #136

nolanlawson opened this issue Mar 28, 2022 · 1 comment

Comments

@nolanlawson
Copy link

nolanlawson commented Mar 28, 2022

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

@nolanlawson
Copy link
Author

BTW there is more discussion about how the accessible name spec interacts with shadow DOM in eps1lon/dom-accessibility-api#768 and w3c/accname#51 .

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