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 9850 - The HTML5 doctype declaration may bug the Checker
Summary: The HTML5 doctype declaration may bug the Checker
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-04 13:02 UTC by fd
Modified: 2010-08-30 11:59 UTC (History)
0 users

See Also:


Attachments

Description fd 2010-06-04 13:02:18 UTC
The mobileOK Checker fails to parse an HTML5 page because of the document type:
 <!DOCTYPE html>
... at least when it cannot be parsed directly as an XML document.

Failure message is "this document is not an HTML document" and no tests are actually performed.

Reported in:
http://lists.w3.org/Archives/Public/public-mobileok-checker/2010Jun/0000.html

First investigation reveals that the HTML tidying library correctly parses the document but returns a tidied document type:
 <!DOCTYPE html SYSTEM "">
... which triggers the following exception:

org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
Comment 1 fd 2010-08-30 11:59:44 UTC
The XhtmlContent class should now support all sorts of DOCTYPEs declarations, including the different HTML5 document types (short, and legacy).

Related tests in the test suite:
MAIN_DOCUMENT 11
MAIN_DOCUMENT 12
MAIN_DOCUMENT 13