Skip to content

Page breaks with compound aria-labelledby example #214

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

Closed
timkindberg opened this issue Jun 24, 2020 · 1 comment · Fixed by #220
Closed

Page breaks with compound aria-labelledby example #214

timkindberg opened this issue Jun 24, 2020 · 1 comment · Fixed by #220
Labels
bug Something isn't working

Comments

@timkindberg
Copy link

Bug Report 🐛

Playground crashes when attempting to target an input with multiple labels used in aria-labelledby

To Reproduce ✔️

  1. Paste this into the HTML box
<div id="a">One</div>
<div id="b">Two</div>
<input
  type="text"
  aria-labelledby="a b"
/>

There are various ways to trigger the crash

  1. Click the input in the preview
  2. Try to manually construct a valid selector in the bottom left panel

Expected behavior 🤔

No crash

Suggested solution 🔦

Error suggests that maybe you are constructing a selector that causes the issue:
image

Your Environment 💻

  • browser: Chrome
  • os: Mac
@timkindberg timkindberg added the bug Something isn't working label Jun 24, 2020
@marcosvega91
Copy link
Member

Hi @timkindberg
thanks for reporting this issue 😄 .
It is regarding to #545.
Unfortunately at the moment this kind of query is not supported yet.

I'll fix on this side in a while 👍

marcosvega91 added a commit to marcosvega91/testing-playground that referenced this issue Jun 24, 2020
qijixin2 added a commit to qijixin2/dom-testing-library that referenced this issue Aug 26, 2022
* test: add failing test

* fix: add quotes between selector

* refactor: get first id from aria-labelledby

Closes testing-library/testing-playground#214
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants