You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rule is supposed to be comparing the accessible name with the visible text of the item, but it seems to be comparing all of the text. Also it only checks elements with an aria-label or aria-labelledby, which is incorrect as the rule can fail even without an ARIA label (i.e. the second example above). See https://www.w3.org/WAI/WCAG21/Techniques/failures/F96 for example.
The text was updated successfully, but these errors were encountered:
Product
axe-core
Product Version
4.10.2
Latest Version
Issue Description
Expectation
Given the following HTML code, axe should not report an label-content-name-mismatch violation:
Given the following HTML code, axe should report an label-content-name-mismatch violation:
Actual
It emits a diagnostic on the code which is correct, and does not emit one on the code which is incorrect.
How to Reproduce
See above. Or also: https://unequivocal.eu/label-content-name-mismatch.html
Additional context
The rule is supposed to be comparing the accessible name with the visible text of the item, but it seems to be comparing all of the text. Also it only checks elements with an
aria-label
oraria-labelledby
, which is incorrect as the rule can fail even without an ARIA label (i.e. the second example above). See https://www.w3.org/WAI/WCAG21/Techniques/failures/F96 for example.The text was updated successfully, but these errors were encountered: