Skip to content

Simplify allowances for explicit declaration of implicit role on elements #612

Open

Description

@scottaohara

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.

Activity

  1. added
    Allowed roles
    needs changelog entry
    on Oct 23, 2026
  2. self-assigned this
    on Oct 23, 2026
  3. added a commit that references this issue on Oct 23, 2026
  4. mtrootyy commented on Oct 23, 2026

    @mtrootyy

    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.
    
  5. scottaohara commented on Oct 23, 2026

    @scottaohara
    MemberAuthor

    Yes. That would absolutely be part of this update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Allowed rolesneeds changelog entry

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions