[BUG] Allow repeated nested group labels
See original GitHub issueWhat tool(s) are you using?
-
accessibility-checker-engine
-
accessibility-checker
-
karma-accessibility-checker
-
rule-server
-
boilerplates
-
other
Detailed description
Node version:
N/A
Platform:
Chrome 90.
Describe in detail the issue you’re having.
In the sample below, there are two groups with unique labels. Each group contains two sub-groups. The sub-groups have unique labels within their parent group.
But EAAC throws an error because every group is considered in a global context. I don’t think it should throw an error.
The same reasoning applies if the parent container is a role=form
or role=search
. You should be able to have two fieldsets (or role=group
) with the same name if they are in different forms.
<div role="group" aria-labelledby="groupLabel1">
<strong id="groupLabel1">group 1 label</strong>
<span id="label1">From</span>
<div role="group" aria-labelledby="label1">...</div>
<span id="label2">To</span>
<div role="group" aria-labelledby="label2">...</div>
</div>
<div role="group" aria-labelledby="groupLabel2">
<strong id="groupLabel2">group 2 label</strong>
<span id="label3">From</span>
<div role="group" aria-labelledby="label3">...</div>
<span id="label4">To</span>
<div role="group" aria-labelledby="label4">...</div>
</div>
Additional information
Here’s the full test case:
<html lang="en">
<head>
<title>Test for spurious EAAC warning</title>
</head>
<body>
<main>
<div role="group" aria-labelledby="groupLabel1">
<strong id="groupLabel1">group 1 label</strong>
<div>
<span id="label1">From</span>
<div role="group" aria-labelledby="label1">
<input aria-label="month">/<input aria-label="day">/<input aria-label="year">
</div>
<span id="label2">To</span>
<div role="group" aria-labelledby="label2">
<input aria-label="month">/<input aria-label="day">/<input aria-label="year">
</div>
</div>
</div>
<div role="group" aria-labelledby="groupLabel2">
<strong id="groupLabel2">group 2 label</strong>
<div>
<span id="label3">From</span>
<div role="group" aria-labelledby="label3">
<input aria-label="month">/<input aria-label="day">/<input aria-label="year">
</div>
<span id="label4">To</span>
<div role="group" aria-labelledby="label4">
<input aria-label="month">/<input aria-label="day">/<input aria-label="year">
</div>
</div>
</div>
</main>
</body>
</html>
EXPECTED OUTPUT:
No errors.
ACTUAL OUTPUT:
Multiple elements with “group” role do not have unique labels.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Specify nested and repeated columns in table schemas
This page describes how to define a table schema with nested and repeated columns in BigQuery. For an overview of table schemas, see...
Read more >How to nest repeating groups in QuickFix DataDictionary?
In order to parse the incoming messages, I need to be able to read nested repeating groups. I tried to model my DD...
Read more >DetailsList - nested groups: rendering issue #20825 - GitHub
When you scroll to the bottom of a large DetailsList with nested groups the list becomes unusable and doesn't show items anymore.
Read more >Active Directory Nested Groups Explained
Nested groups inherit the permissions and privileges of the group they are put under, and hence this makes privilege administration easier.
Read more >ABBYY FlexiCapture - Nested Repeating Groups in FlexiLayout
Learn how to set up nested repeating groups in ABBYY FlexiCapture FlexiLayout Studio. Nested repeating groups can be useful in many ways, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We’ve had a fair amount of debate on this. Short story is, you’re right. Where I think we’ve settled:
In the IBM ruleset:
These will flag as recommendations in the WCAG rulesets.
This now works on the chrome store plugin. To replicate this you must use the preview ruleset by doing:
Click here:
Click change ruleset
Set the tool to preview rules: