This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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.
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