ellie-app/ellie

The HTML is missing <!DOCTYPE html>

lucamug opened this issue · 1 comments

The HTML in the code editor is missing <!DOCTYPE html> at the top.

While this seems working fine in Ellie, if a user copy and paste that HTML somewhere, it will not be considered HTML5.

This cause a very subtle issue with elm-ui that is very hard to detect.

To clarify, the problem with elm-ui is with line spacing: https://ellie-app.com/cX8wWbMfRLfa1
The Ellie demo shows that the line spacing of a paragraph is correctly implemented with Element.spacingXY.
However, when developing locally, line spacing will not work if <!DOCTYPE html> is not included in index.html. Adding Element.spacingXY will somehow move the entire paragraph up or down.