Accy

Non-existent ARIA role

WCAG 4.1.2 (A) · EN 301 549 9.4.1.2

An element has role="{role}", which is not a valid role.

Why it matters

A misspelled role does nothing: the browser ignores it and the element is exposed with its original semantics, which is almost always "no meaning at all". The developer believes it is fixed, and it is not.

How to fix it

Correct the role name, or drop it and use the native HTML element, which already carries the right role.

As it is
<span role="buton">Buy</span>
As it should be
<button type="button">Buy</button>

Related

Does your shop have this failure?

Check for free, along with the other 54 rules. No sign-up.

No sign-up. We scan one public page and store nothing about you.