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
{{ message }}
Repository navigation
Simplify allowances for explicit declaration of implicit role on elements #612
Allowed rolesPertaining to the allowed roles of HTML elementsneeds changelog entryonce 2 implementations land, we can merge and note it in our changelog.
It is still generally unnecessary for authors to explicitly declare an element's implicit role with ARIA. E.g., <button role=button> is redundant and practically useless... but it is also not harmful to accessibility.
Rather than declare that is 'not recommended' over and over again, I'm suggesting these redundant statements be removed from the spec.
Instead, if it is known that declaring a role (including its implicit role) on an element would introduce accessibility issues, THEN the spec will state that the role cannot be applied (either overtly saying the specific role is not allowed to be defined, or through the general 'No roles' authors must requirement).
A single paragraph can be added to the spec, prior to the role allowances table, to inform authors that they may specify an elements implicit role, or the roles identified as allowed, unless otherwise noted.
To finish this update, other sections of the spec should be reviewed to make sure any related language is updated to align with this proposed change.
A single paragraph can be added to the spec, prior to the role allowances table, to inform authors that they may specify an elements implicit role, or the roles identified as allowed, unless otherwise noted.
I do not object to the above, but the following sentence should be explicitly stated.
But it is generally unnecessary for authors to explicitly declare an element's implicit role.
Allowed rolesPertaining to the allowed roles of HTML elementsneeds changelog entryonce 2 implementations land, we can merge and note it in our changelog.
Activity
remove 'not recommended' guidance
mtrootyy commentedon Oct 23, 2026
I do not object to the above, but the following sentence should be explicitly stated.
scottaohara commentedon Oct 23, 2026
Yes. That would absolutely be part of this update.