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 6448 - Document Override goes to HTML 5
Summary: Document Override goes to HTML 5
Status: RESOLVED DUPLICATE of bug 6250
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.8.4
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://validator.w3.org/check?uri=htt...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-19 19:49 UTC by Griff Ruby
Modified: 2009-01-19 20:09 UTC (History)
1 user (show)

See Also:


Attachments

Description Griff Ruby 2009-01-19 19:49:21 UTC
When a Document Override of HTML 3.2, HTML 2.0, or ISO/IEC 15445:2000 ("ISO HTML") is specified, the validator attempts to parse the file as though it were overridden to HTML 5, even while still admitting the chosen version of HTML.
For example, the file scanned with the URL given above contains no DOCTYPE declaration, so I have attempted to parse the file using the HTML 3.2 standard.  (I realize the file does not fully conform to the HTML 3.2 standard in that it uses the <FONT> element inside the <PRE> element, but that should be the only complaint, other than the lack of a DOCTYPE declaration, on that file)
The validator instead attemptes to parse it with the new experimental HTML 5 conformance checker and finds any number of complaints on the basis that the file is not HTML 5 at all.
It reports "Errors found while checking this document as HTML5!" though later on it reports "DOCTYPE Override in effect!  The DOCTYPE Declaration for 'HTML 3.2' has been inserted at the start of the document, but even if no errors are shown below the document will not be Valid until you add the new DOCTYPE Declaration."
If the source code is listed, its first line shows as:
1. <!DOCTYPE html>
One other observation I have made is that if the file already contains a DOCTYPE declaration of the document type to which the document override is set, the document is correctly scanned in accordance with the document type specified in both the document and the override.
Comment 1 Ville Skyttä 2009-01-19 20:09:35 UTC

*** This bug has been marked as a duplicate of bug 6250 ***