This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6747 - Direct input of HTML5 seems to validate anything
Summary: Direct input of HTML5 seems to validate anything
Status: RESOLVED FIXED
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 minor
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-30 02:59 UTC by Eric Anderson
Modified: 2015-08-23 07:07 UTC (History)
1 user (show)

See Also:


Attachments
HTML5 doc that should not validate (196 bytes, text/html)
2009-03-30 02:59 UTC, Eric Anderson
Details

Description Eric Anderson 2009-03-30 02:59:47 UTC
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).
Comment 1 Ville Skyttä 2009-09-15 19:11:34 UTC
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).
Comment 2 Ville Skyttä 2009-09-15 19:26:49 UTC
(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
Comment 3 Ville Skyttä 2010-03-02 19:55:15 UTC
Fix is included in 0.8.6.