Prettier 1.18.2
Playground link
Input:
<!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.
Prettier 1.18.2
Playground link
Input:
Output:
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.