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

HTML5 file has syntax errors #89

Open
ismael-miguel opened this issue Apr 4, 2018 · 2 comments
Open

HTML5 file has syntax errors #89

ismael-miguel opened this issue Apr 4, 2018 · 2 comments

Comments

@ismael-miguel
Copy link

The current content of the HTML5 (<!DOCTYPE html>) has syntax errors:

syntax error

This means that there must be present a <title> element in the document, being this the final code:

<!DOCTYPE html><title>x</title>

The same validates properly:

validated

This was verified using https://html5.validator.nu/

@mathiasbynens
Copy link
Owner

mathiasbynens commented Apr 4, 2018 via email

@ismael-miguel
Copy link
Author

ismael-miguel commented Apr 4, 2018

If it is to be 100% standard compliant, HTML emails are far behind.

Heck, Microsoft Oulook 2007 and newer use the Microsoft Word engine to display the emails.
(https://www.howto-outlook.com/faq/wordhtml.htm)

If it is "Smallest possible syntactically valid files of different types", do word processors rendering HTML count as a deciding factor on the syntax and implementation?

If they do, I propose the following: html5.html and html5-email.html as separated.

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