web-infra-dev
rspack
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
test(html): cover multiple comments above the doctype The comment-skipping logic handles any number of leading comments, so the regression case uses two comments with blank lines between them instead of one.
seal/fix-html-comment-before-doctype
3 hours ago
fix(html): keep the doctype when a comment is above it HtmlRspackPlugin strips leading whitespace before looking for the doctype, so a template like `<!-- comment --><!DOCTYPE html>` was treated as a document without a doctype and had another doctype injected in front of it. Parsing then failed with "HTML parse error: Stray doctype". - Skip leading comments (and whitespace) as well, since they are allowed before the doctype by the HTML spec. - Remove the injected doctype from the AST before emitting instead of replacing the uppercase `<!DOCTYPE html>` in the output, which did not work when minifying because codegen emits the lowercase `<!doctype html>`.
seal/fix-html-comment-before-doctype
4 hours ago
CLI run
by
SyMind
4 hours ago
CLI run
by
SyMind
4 hours ago
CLI run
by
SyMind
4 hours ago
CLI run
by
SyMind
4 hours ago
CLI run
by
SyMind
4 hours ago
CLI run
by
SyMind
4 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(html): keep the doctype when a comment is above it
#15778
4 hours ago
2bc8989
seal/fix-html-comment-before-doctype
CodSpeed Performance Gauge
0%
test: migrate case configs to TypeScript (batch 4)
#15777
8 hours ago
4307d1d
chenjiahan/ts-configs-batch-4
CodSpeed Performance Gauge
0%
test: migrate case configs to TypeScript (batch 3)
#15776
8 hours ago
65e5c88
chenjiahan/ts-configs-batch-3
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs