NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 1023 - Missing open <html> tag not detected
Missing open <html> tag not detected
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 enhancement
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-12 11:25 CET by calimeroteknik
Modified: 2015-03-31 03:01 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description calimeroteknik 2015-03-12 11:25:41 CET
Omitting the <html> tag at the beginning of the document seems to be fine to the validator.

This is considered valid (it's the default example, with <html> removed):

<!DOCTYPE html>
<head>
<title>Test</title>
</head>
<body>
<p></p>
</body>
</html>

xmllint of course rejects that.
Comment 1 calimeroteknik 2015-03-13 15:40:10 CET
I discovered that this was tolerated by the HTML5 spec!
Adding a warning couldn't hurt, though.
Comment 2 Michael[tm] Smith 2015-03-31 03:01:33 CEST
resolving; see comment 1