Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The HTML is missing <!DOCTYPE html> #143

Open
lucamug opened this issue Apr 19, 2021 · 1 comment
Open

The HTML is missing <!DOCTYPE html> #143

lucamug opened this issue Apr 19, 2021 · 1 comment

Comments

@lucamug
Copy link

lucamug commented Apr 19, 2021

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.

@techmindful
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants