IDs used in ARIA and labels must be unique

Rule ID: duplicate-id-aria
Ruleset: axe-core 3.2
User Impact: Critical
WCAG: 4.1.1
You are viewing older version of the axe rule.
Go to the latest version (3.3)

Overwhelmed by accessibility? We've got you covered.

Join Deque's exclusive beta tester community and help us put the power of creating accessible code at your fingertips - no accessibility expertise required.

Compliance Data & Impact

User Impact

Disabilities Affected

  • Blindness
  • Deafblindness

Requirement(s)

  • WCAG 2.1 (A): MUST
  • WCAG 2.0 (A): MUST

WCAG Success Criteria

  • 4.1.1 Parsing

Section 508 Guidelines

  • Not specified or not applicable

How to Fix the Problem

Rename any duplicate ARIA ID values.

Duplicate ARIA IDs are common validation errors that may break the accessibility of labels, e.g., form fields, table header cells.

To fix the problem, change an ID value if it is used more than once to be sure each is unique. Unique ID's differentiate each element from another and prevent invalid markup, wherein only the first instance gets acted upon by client-side scripting, or where assistive technologies typically only reference the first one accurately.

Why this is Important

Duplicate ARIA IDs are common validation errors that may break the accessibility of labels, e.g., form fields, table header cells.

Unique ID's differentiate each element from another and prevent invalid markup, wherein only the first instance gets acted upon by client-side scripting, or where assistive technologies typically only reference the first one accurately.

Rule Description

The value assigned to an ARIA ID must be unique to prevent the second instance from being overlooked by assistive technology. Put another way; ARIA ID values may not be used more than once in the same document to differentiate each element from another.

The Algorithm (in simple terms)

Ensures every ARIA ID value is unique

Resources

Other Resources

You may also want to check out these other resources.

Refer to the complete list of axe 3.2 rules.

Was this information helpful?

You have already given your feedback, thank you.

Your response was as follows:

Was this information helpful ?
Date/ Time feedback was submitted :