dequelabs / dequelabs/axe-core

Refactor / improve duplicate-id-aria

Open
#4,076 2 comments 1 reaction 0 assignees View on GitHub
feat rules
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.