Manual Test Cases for ARIA Controls Duplicate IDs - Test 1436
Test 1436: One or more elements, not intentionally hidden in the DOM and available to assistive technologies, has an aria-controls attribute that is set to a duplicate id.
Elements with aria-controls are outlined in purple. Duplicate IDs are highlighted in red, unique IDs in green.
Test Logic:
Tests for elements with aria-controls attribute pointing to IDs that appear multiple times in the DOM
Elements must not be intentionally hidden (display:none, visibility:hidden, aria-hidden="true")
Elements must be available to assistive technologies
Empty aria-controls values are ignored
Multiple space-separated IDs in aria-controls are supported - fails if any referenced ID is duplicated
Common Use Cases:
Tabs with aria-controls pointing to tabpanels
Accordion buttons controlling collapsible panels
Comboboxes controlling listboxes
Any interactive element that controls another element
N/A Tests - Should Not Be Tested
Element without aria-controls attribute
Elements without aria-controls are not tested
Element with empty aria-controls attribute
Empty aria-controls values are ignored
Hidden element with aria-controls (display:none)
Panel 1
Panel 2
Hidden elements are excluded from testing
Hidden element with aria-controls (visibility:hidden)
Panel 1
Panel 2
Visibility hidden elements are not tested
Element with aria-hidden="true" and aria-controls
Panel 1
Panel 2
aria-hidden elements are not available to assistive technologies
PASS Tests - ARIA Controls Pointing to Unique IDs
Single element with aria-controls pointing to unique ID
Panel Content
ID "uniquePanel1" appears only once in the DOM
Multiple elements with aria-controls pointing to different unique IDs
Panel 1
Panel 2
Each aria-controls points to a unique ID
Element with aria-controls pointing to non-existent but unique ID
Non-existent IDs are still considered unique (no duplicates)
Element with aria-controls containing multiple unique IDs
Panel 1
Panel 2
Multiple space-separated IDs, all unique
ARIA tab/tabpanel with unique IDs
Content 1
Common tab pattern with unique tabpanel ID
Combobox with aria-controls pointing to unique listbox
Option 1
Combobox pattern with unique listbox ID
Element with aria-controls to single ID among other duplicate IDs
Unique Panel
Duplicate 1
Duplicate 2
aria-controls points to unique ID, even though other duplicates exist in DOM
FAIL Tests - ARIA Controls Pointing to Duplicate IDs
Single element with aria-controls pointing to duplicate ID
Panel 1
Panel 2
ID "dupPanel1" appears twice - FAILS
Multiple elements with aria-controls pointing to same duplicate ID
Panel 1
Panel 2
Two buttons both reference duplicate ID - both FAIL (2 failures)
Element with aria-controls containing one duplicate ID among multiple IDs
Panel 1a
Panel 1b
Panel 2
One of the referenced IDs is duplicated - FAILS
Element with aria-controls containing multiple duplicate IDs
Panel 1a
Panel 1b
Panel 2a
Panel 2b
Both referenced IDs are duplicated - FAILS
ARIA tab with aria-controls pointing to duplicate tabpanel ID
Content 1
Content 2
Tab pattern with duplicate tabpanel ID - FAILS
Combobox with aria-controls pointing to duplicate listbox ID
Option 1
Option 2
Combobox pattern with duplicate listbox ID - FAILS
Accordion button with aria-controls pointing to duplicate panel ID