This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Created attachment 674 [details] HTML5 doc that should not validate When doing direct input of a HTML5 document the validator seems to return it being ok no matter what. Attached is a small test file that shows the problem. The <body> tags is purposely mistyped as <bodly>. If I upload this file then I get an error as expected. But if I copy and paste the text in the direct input then it says the document is ok even though it is not. After a bit of testing I discovered that if I explicitly tell it that the content is HTML5 then it detects the problems fine. So it only seems to be a problem if the doctype is automatically detecting the doctype (even though it is automatically detecting HTML5 correctly).
That's right; when not overriding doctype or charset, validator ended up passing a malformed Content-Type header to the HTML5 validator. This should be fixed in http://www.w3.org/mid/E1MndLh-0001IU-EA%40lionel-hutz.w3.org , but it remains to be examined why this resulted in marking everything as valid (probably the HTML5 validator output was something the markup validator couldn't understand).
(In reply to comment #1) > it remains to be examined why this resulted in marking everything as valid > (probably the HTML5 validator output was something the markup validator > couldn't understand). Indeed. This should be fixed in http://www.w3.org/mid/E1Mnddq-0001uN-Gh%40lionel-hutz.w3.org
Fix is included in 0.8.6.