Rules · label-content-name-mismatch
Failure reference
Buttons and links whose spoken name differs from their text.
A voice-control user says "click Add to basket", the words on the button. Nothing happens, because its hidden aria-label says something else.
What fails — and who it fails
The failure, in plain language.
Controls whose visible text is not part of their accessible name, usually an aria-label added for SEO or analytics ("cta-primary", "Buy now product 8841") that replaces the words on screen. Speech users cannot target the control by what they see.
Detection — what the machine can and cannot judge
How the scanner finds it.
- Controls with visible text and an aria-label or aria-labelledby are checked that the accessible name contains the visible text.
- A mismatch is flagged with the selector, the visible text and the name found.
- What automation cannot judge: labels drawn as images or icons, where the visible label has to be read by a person. Those stay with the guided audit.
The legal reading — factual, not fearful
Where this sits in enforcement.
2.5.3 is Level A, added in WCAG 2.1 and carried into EN 301 549. It turns up on primary buttons, so it sits on the paths that matter most.
The fix — by pattern
2 patterns cover nearly every instance.
- <button aria-label="cta-primary">Add to basket</button>
+ <button>Add to basket</button>- <a href="/p/8841" aria-label="Product details">View</a>
+ <a href="/p/8841" aria-label="View weekender bag">View</a>Fix the template, not the page — one change typically clears every instance at once. The triage engine groups findings by template pattern for exactly that reason.
Verification — resolution is evidence, not a checkbox
Fixed means a scan said so.
On monitored domains, mark the finding fixed and the next scan verifies it: zero remaining instances converts the finding to Resolved, and both the claim and the confirmation land in the append-only ledger. Criteria that need human judgement close through sign-off in the coverage matrix — covered by the right method, never by assumption.
Related failures:
See where your templates stand.
A complimentary assessment renders up to 25 public pages in an EU-hosted browser and shows every instance of this failure — grouped, ranked, and honest about what still needs a human.