Skip to content

fix: remove duplicate id="content"#3

Open
wowi42 wants to merge 1 commit into
pyinfra-dev:mainfrom
KalvadTech:fix/duplicate-content-id
Open

fix: remove duplicate id="content"#3
wowi42 wants to merge 1 commit into
pyinfra-dev:mainfrom
KalvadTech:fix/duplicate-content-id

Conversation

@wowi42
Copy link
Copy Markdown
Contributor

@wowi42 wowi42 commented May 5, 2026

Summary

  • Rename the inner <article id="content"> to id="hero" so the page no longer has two elements sharing the same id (the outer <section id="content"> keeps the original).
  • Duplicate IDs are invalid HTML and are flagged by Lighthouse and most SEO crawlers. Neither id is referenced from CSS or JS, so this is a no-op visually.

Test plan

  • Open index.html locally, page renders identically
  • Run Lighthouse, "Document avoids duplicate IDs" passes

The page had two elements sharing id="content" (the section
wrapper and the inner article). Duplicate IDs are invalid HTML
and get flagged by Lighthouse and SEO crawlers. The article
holds the hero copy, so id="hero" is more descriptive.
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