-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
lang:htmlIssues affecting HTML (and SVG but not JSX)Issues affecting HTML (and SVG but not JSX)status:needs discussionIssues needing discussion and a decision to be made before action can be takenIssues needing discussion and a decision to be made before action can be taken
Description
Prettier 1.18.2
Playground link
--parser htmlInput:
<!doctype html>
<html>
text
</html>Output:
<!DOCTYPE html>
<html>
text
</html>Expected behavior:
It'd be great if there were an option to disable transforming the html doctype tag into uppercase. Per the spec, the doctype is case insensitive - even google.com has its doctype declaration in lowercase. For normal HTML tags, prettier accepts all uppercase, e.g. <DIV> or all lowercase, e.g. <div>, however the doctype tag must be uppercase.
I would expect prettier not to treat the doctype differently from other HTML tags.
k-yle, kantuni, sarumanplaysguitar, kydesnic, kosperera and 7 morealexander-akait, Skalman, lydell, ExE-Boss, so1ve and 3 more
Metadata
Metadata
Assignees
Labels
lang:htmlIssues affecting HTML (and SVG but not JSX)Issues affecting HTML (and SVG but not JSX)status:needs discussionIssues needing discussion and a decision to be made before action can be takenIssues needing discussion and a decision to be made before action can be taken