-
Notifications
You must be signed in to change notification settings - Fork 788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update duplicate-id rules to align with WCAG 2.2 #3892
Comments
I agree 100% with your proposals for
|
This should not have been closed. duplidate-id-aria has not been updated. |
So we're not going to see duplicate-id-active & duplicate-id in 4.8, and we'll see duplicate-id-aria with just a wcag131 tag, right? |
For anyone following along, here's the blogpost I wrote on this issue: |
Wasn't all done yet |
This part of the original issue description:
...is being tracked as #4076 |
Validated with the latest axe-core/canary build(develop branch code base) (It was failing earlier and holding Screen.Recording.2023-07-05.at.8.22.30.AM.mov |
In WCAG 2.2, success criterion 4.1.1 has been removed. This raises lots of questions on how to handle that in axe-core. Here's my proposal on how this should effect axe-core. I'm looking for feedback on this approach:
duplicate-id-aria
This rule fails when a duplicate ID is used in ARIA, or in form labelling. The result of it can be that controls have incorrect names, or that other relationships are incorrect. Per the standard, only the first of an ID in a page is valid. So if the first ID happens to be the correct one then there's no accessibility problem. If not, then there is almost certainly some issue, but without SC 4.1.1 to report to it is difficult to say what it actually is. This rule reports
serious
issues.wcag2a
tag with awcag2a-obsolete
tag.best-practice
tag, so that this rule will only run when best practices are turned onFuture: We've been talking about possibly replacing this rule with a more focused
idref-labels-and-aria
rule that doesn't just look at duplicates, but considers whether based on DOM order that's likely to cause an accessibility problem. As part of resolving this issue we should have a proposal of that rule written.duplicate-id
It is a technical failure of WCAG SC 4.1.1 Parsing, but in practice it has no impact on accessibility. Axe-core reports these as
minor
issues.duplicate-id
rule by default. This rule will not run unless explicitly configured, and will be removed in axe-core 5.0.wcag2a
tag with awcag2a-obsolete
tag.duplicate-id-active
This rule was created to catch a problem with Dragon Naturally Speaking, where if active controls like buttons shared an ID, Dragon could activate the first element with that ID, even if you asked it to activate the second. Axe reports this as a
serious
issue. After some testing we've discovered this problem no longer exists. So for this rule we'll deprecate and tag it the same way we're doing forduplicate-id
.The text was updated successfully, but these errors were encountered: