Skip to main content

ARIA & keyboard

Duplicate ID

WCAG 2.2 success criterion 4.1.2 Name, Role, Value (Level A)

WCAG 2.2
4.1.2 Name, Role, Value
Level
A
Default severity
Tip
Available in
Free

Why it matters

When a label, ARIA reference or in-page link points at an ID used twice, only the first match counts — so the second field loses its label.

Who it affects: Screen reader and keyboard users, who depend on ARIA and focus order being correct to understand and operate the page.

What Lumtera flags

IDs used more than once. A duplicate that a label, ARIA attribute or in-page link points at needs review; other duplicates are shown as tips.

Check ID duplicate-id — use it to filter the content report or with wp lumtera issues --rule.

How to fix it in WordPress

Give each element a unique ID. In the block editor, check Advanced → HTML anchor on copied blocks, which keep the original's anchor.

Example

Flagged
<h2 id="pricing">Teams</h2> … <h2 id="pricing">Schools</h2>
Fixed
<h2 id="pricing-teams">Teams</h2> … <h2 id="pricing-schools">Schools</h2>

How to check your fix

  1. Update the post. The issue disappears from the Accessibility sidebar on the next check, and from the site report on the next scan.
  2. Press Tab from the top of the page. Focus should move in reading order and never land on something invisible or silent.

Find this issue across your whole site

Lumtera runs this check in the block editor sidebar as you write, in the Elementor panel, in Review mode on the live page, and across the whole site in the content report and with wp lumtera scan. You can change its severity or turn it off in Accessibility → Settings.

All checks

Start with the free plugin today

All 64 checks, the editor sidebar, Elementor panel and site report — free, with no account and no page limits.