Skip to content

fix(create-rsbuild): use uppercase doctype in lit templates#6854

Merged
chenjiahan merged 2 commits intomainfrom
create_rsbuild_1228
Dec 29, 2025
Merged

fix(create-rsbuild): use uppercase doctype in lit templates#6854
chenjiahan merged 2 commits intomainfrom
create_rsbuild_1228

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

The same as #6853

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings December 28, 2025 14:13
@netlify
Copy link
Copy Markdown

netlify bot commented Dec 28, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit aac5874
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/69513b4ada2e5a0008f808ef
😎 Deploy Preview https://deploy-preview-6854--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 67 (🔴 down 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to standardize HTML templates in Lit projects by using uppercase DOCTYPE declarations and adding proper <html> wrapper tags. However, the implementation is incomplete as only one of three files correctly uses uppercase DOCTYPE.

Key changes:

  • Updates HTML structure in three Lit template files to include <html> wrapper tags
  • Attempts to change DOCTYPE from lowercase to uppercase
  • Adds .prettierignore rule to prevent Prettier from formatting these HTML files

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
packages/create-rsbuild/template-lit-ts/src/index.html Adds <html> wrapper and attempts DOCTYPE update (but uses lowercase)
packages/create-rsbuild/template-lit-js/src/index.html Adds <html> wrapper and correctly uses uppercase DOCTYPE
examples/lit/src/index.html Adds <html> wrapper and attempts DOCTYPE update (but uses lowercase)
.prettierignore Adds ignore pattern for create-rsbuild HTML files (incomplete coverage)

Critical Issue: There is an inconsistency in the DOCTYPE declarations across the three HTML files. While the PR title and description indicate the goal is to use "uppercase doctype", only template-lit-js/src/index.html correctly implements <!DOCTYPE html> with uppercase. The other two files (template-lit-ts/src/index.html and examples/lit/src/index.html) still use lowercase <!doctype html>. Additionally, the .prettierignore pattern doesn't cover the examples directory, which could lead to Prettier reformatting the examples/lit HTML file back to lowercase.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chenjiahan chenjiahan merged commit be6039b into main Dec 29, 2025
11 checks passed
@chenjiahan chenjiahan deleted the create_rsbuild_1228 branch December 29, 2025 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants