-
Notifications
You must be signed in to change notification settings - Fork 883
Refactor / improve duplicate-id-aria #4076
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:
-
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.
-
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.