Skip to content

Refactor / improve duplicate-id-aria #4076

@WilcoFiers

Description

@WilcoFiers

With the duplicate-id and duplicate-id-active rules deprecated in 4.8, it would be useful for us to look at how we can improve duplicate-id-aria. There are two things I'd like to see us figure out:

  1. Can we make this rule faster if instead of starting from IDs we start from IDREF attributes. I don't know if that needs to be a different rule. We'll have to decide if having the same rule report all different nodes is better than having a new rule do it, and turning the current rule off. Up for debate.

  2. Can we further reduce noise, and maybe make this rule more accurately by looking at DOM position, and the accessible name of the elements referenced. In particular the for labelledby / describedby if all nodes with the duplicated ID have the same accessible text, we could pass the rule since the control will (almost certainly) have the correct name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or enhancementrulesIssue or false result from an axe-core rule

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions