IDs used in ARIA and labels must be unique
How to Fix the Problem
Rename any duplicate id values in the document so each referenced
element has a unique id.
Why it Matters
Duplicate IDs are common validation errors that may break the accessibility of labels, e.g., ARIA elements, 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
When an element's id is referenced by an ARIA attribute or by a
<label>'s for attribute, that
id must be unique in the document. If more than one element
shares the same id, assistive technology will typically only
resolve the reference to the first one and overlook the others.
Note: it is fine for multiple references to point at the same
id (for example, two
<label for="name"> elements associated with a single
<input id="name">). It is only a problem when two or more
elements share the same id.
The Algorithm (in simple terms)
Ensures every id referenced by an ARIA attribute or a
<label>'s for attribute is unique in the
document.
