Skip to content

Prettier breaks XHTML documents by incorrectly lowercasing DOCTYPE #15476

@eligrey

Description

@eligrey

The change in #7391 caused prettier to break my XHTML documents by lowercasing the DOCTYPE, resulting in XML well-formedness errors for my use case.

DOCTYPE is case-sensitive in XML contexts. I cannot wrap it with prettier ignore comments as that would produce invalid XML.

Metadata

Metadata

Assignees

Labels

lang:htmlIssues affecting HTML (and SVG but not JSX)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions