-
Notifications
You must be signed in to change notification settings - Fork 788
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
Form-Associated Custom Elements are not Associated to Labels #4085
Comments
Thanks for the issue. I'm not sure the
Checking the |
Oh, interesting. VoiceOver on Chrome and Firefox are working for me - "Edit text, blank, My Input, group". |
I think we're going to need to figure out a way to detect this and report a separate issue for it. Missing for labels is a big problem, I wouldn't want to pass this, but it would be useful if we explicitly stated this technique isn't broadly supported yet. |
After doing some digging, it looks like in Safari it is a bug on their end. The element is not properly referencing the label. |
The VO + Chrome implementation isn't great either.
Other tests:
Seems like major red flags on poor or inconsistent support for this feature. |
@break-stuff Looking at this, without Reference Targets, I'm not sure why you would think that this label would point to the If that's true, isn't this more a bug of false positivity in Chrome and Firefox? If you add a |
I agree. I was a bit naive in my understanding of what ElementInternals actually did for custom elements. Reference targets would solve this issue. |
Product
axe Extension
Product Version
4.58.3
Latest Version
Issue Description
Expectation
When using the ElementInternals API, form-associated custom elements should be able to be referenced by
<label>
elements using thefor
attribute.Actual
The extension cited a critical issue saying the element was missing a label.
How to Reproduce
Additional context
The source code for this can be found here - https://codepen.io/break-stuff/pen/qBQPGVb
The text was updated successfully, but these errors were encountered: