Skip to content

[Bug]: Generated HTML fails the official W3 HTML validator #3339

@micrology

Description

@micrology

Version

System:
    OS: macOS 26.4.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 94.75 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Brave Browser: 114.1.52.117
    Chrome: 147.0.7727.138
    Edge: 146.0.3856.97
    Firefox: 150.0
    Safari: 26.4

Details

The W3 Nu HTML Checker reports errors when checking output from npm run build. rspress should generate HTML that passes validation.

Reproduce link

https://validator.w3.org/nu/?showsource=yes&doc=https%3A%2F%2Frspress.rs%2Fguide%2Fstart%2Fintroduction

Reproduce Steps

The link above submits the rspress Guide's Introduction to the official W3 HTML validator, which reports 10 HTML errors on that page. This is just an example - similar errors are reported for other pages.

Metadata

Metadata

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions