<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9850</bug_id>
          
          <creation_ts>2010-06-04 13:02:18 +0000</creation_ts>
          <short_desc>The HTML5 doctype declaration may bug the Checker</short_desc>
          <delta_ts>2010-08-30 11:59:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>mobileOK Basic checker</product>
          <component>Java Library</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="fd">fd</reporter>
          <assigned_to name="fd">fd</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35968</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2010-06-04 13:02:18 +0000</bug_when>
    <thetext>The mobileOK Checker fails to parse an HTML5 page because of the document type:
 &lt;!DOCTYPE html&gt;
... at least when it cannot be parsed directly as an XML document.

Failure message is &quot;this document is not an HTML document&quot; 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:
 &lt;!DOCTYPE html SYSTEM &quot;&quot;&gt;
... 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38190</commentid>
    <comment_count>1</comment_count>
    <who name="fd">fd</who>
    <bug_when>2010-08-30 11:59:44 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>