Skip to content

Playground: valid HTML (h1, doctype, void tags) - #9

Merged
Amsozzer1 merged 1 commit into
mainfrom
fix/playground-html
Oct 13, 2026
Merged

Amsozzer1 merged 1 commit into
mainfrom
fix/playground-html

Conversation

@Amsozzer1

@Amsozzer1 Amsozzer1 commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

The playground page had no h1: the wordmark was a <p>. Running amsozzer.com's html-validate rules against it before deploying flagged that, plus a lowercase doctype and self-closing <meta /> tags, including the CSP tag the build injects.

  • The wordmark is now the page's h1. It looks the same.
  • <!DOCTYPE html>.
  • Void elements have no trailing slash.

html-validate with the site's config now reports 0 problems. pnpm check:all and pnpm test:playground pass.

🤖 Generated with Claude Code

Summary by Sourcery

Enhancements:

  • Make the playground HTML conform to the site's validation rules by adding a semantic page heading and standardizing doctype and void-element markup.

…sing void tags

The page had no h1 (the wordmark was a paragraph), so assistive tech had no
page title heading. amsozzer.com's html-validate rules also want an
uppercase DOCTYPE and void elements without a trailing slash, including the
CSP meta tag the build injects.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@sourcery-ai

sourcery-ai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the playground's document structure and generated head markup to use valid HTML5 conventions, adding a semantic h1, normalizing the doctype, and removing self-closing syntax from void elements; the reported validation and project checks pass.

File-Level Changes

Change Details Files
Make the playground document conform to the site's HTML validation rules.
  • Upgrade the wordmark from a paragraph to the page-level heading while preserving its existing class and presentation.
  • Normalize the doctype to HTML5 uppercase syntax.
  • Remove trailing slashes from void elements, including the injected CSP meta tag.
  • Keep the generated CSP markup consistent with the source document's valid HTML syntax.
playground/index.html
playground/vite.config.ts

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@Amsozzer1
Amsozzer1 merged commit 4291ebe into main Oct 13, 2026
4 checks passed
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