The button-name
markup rule throws false positive for label + for with id
#4625
Labels
ungroomed
Ticket needs a maintainer to prioritize and label
Product
axe-core
Product Version
4.10.0
Latest Version
Issue Description
Expectation
The following should pass the
button-name
rule:The real-world use case for this is using a button with the role of a combobox.
Actual
The code fails the
button-name
rule.How to Reproduce
https://jsfiddle.net/nvagwdhe/
Additional context
This is where the HTML spec defines a button as an element that can be labelled via a label: https://html.spec.whatwg.org/multipage/forms.html#category-label
The text was updated successfully, but these errors were encountered: