Skip to content

Rule idea: explicit role is not same as implicit #2085

@Jym77

Description

@Jym77

While working on #2084, I found this bit of ARIA in HTML:

Conformance checkers SHOULD flag instances where authors are explicitly providing an element with a role which matches its implicit ARIA semantics as failures, as it is NOT RECOMMENDED for authors to explicitly set these roles.

From this, it feels like it would make sense to have a rule checking that, since tools are expected to fail it.
OTOH, this rule would only be a best practice, not even mapping to ARIA in HTML, since this is allowed but not recommended 🤔 We're not really having any of these currently…

So, should we have a rule to check that the explicit role is not the same as the implicit role?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions