Skip to content

Duplicate IDs + canonical/hreflang - #260

Merged
aayambansal merged 2 commits into
mainfrom
feat/dup-ids
Jul 26, 2026
Merged

Duplicate IDs + canonical/hreflang#260
aayambansal merged 2 commits into
mainfrom
feat/dup-ids

Conversation

@aayambansal

Copy link
Copy Markdown
Owner

Two more silent-failure classes. Duplicate ids: getElementById returns the first match, so a repeated id makes label[for], aria-* references, and #anchors bind the wrong node — invisibly. Canonical/hreflang: multiple canonical links make search engines see conflicting URLs (they may ignore all of them), and an empty-href hreflang alternate points a language variant nowhere. Both live-tested. Local check green; merge gated on PR CI.

getElementById returns the first match, so label[for], aria-*
references, and #anchors silently bind the wrong node when an id
repeats. Flagged with the id and its count.
Multiple canonical links (search engines see conflicting URLs) and
empty-href hreflang alternates (a language variant pointing nowhere)
join the meta audit.
@aayambansal
aayambansal merged commit c0e6323 into main Jul 26, 2026
1 check passed
@aayambansal
aayambansal deleted the feat/dup-ids branch July 26, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant