React-static: No Doctype ?

Created on 30 Oct 2017  路  3Comments  路  Source: react-static/react-static

Hello, react-static forget to include a <!doctype html>in the first line of all HTML pages.
It's not useless, If you dont put a doctype declaration, browsers ( at least desktop ) 'quirks mode' will interpret your page as the oldiest version of Html or undeterminated...

How can I add it ? Thanks !

Most helpful comment

DocType is addressed at the export stage and is applied to every single file exported. So be not afraid ;). DocType is there.... watching over you. Creepily.... but consistently haha

All 3 comments

Hmm, perhaps if and after #104 is merged this would be quite easy to fix. Since you're feeding the output HTML as a template for Webpack, could just as well slap the doctype at the top of the template.

Like UTF-8 Charset, you are right, that should be part of all templates.

DocType is addressed at the export stage and is applied to every single file exported. So be not afraid ;). DocType is there.... watching over you. Creepily.... but consistently haha

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stefan-h-singer picture stefan-h-singer  路  3Comments

josephdburdick picture josephdburdick  路  4Comments

tannerlinsley picture tannerlinsley  路  3Comments

tomagladiator picture tomagladiator  路  3Comments

pbgms picture pbgms  路  3Comments