<?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>7463</bug_id>
          
          <creation_ts>2009-08-31 07:56:38 +0000</creation_ts>
          <short_desc>CONTENT_FORMAT_SUPPORT-3: &quot;No doctype found&quot; is triggered when doctype is invalid.</short_desc>
          <delta_ts>2010-08-30 12:07:25 +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>26749</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2009-08-31 07:56:38 +0000</bug_when>
    <thetext>When the doctype declaration contains a syntax error, the XML parser fails to identify it as a doctype declaration and the mobileOK Checker reports:
 1. a markup validation error for the syntax error. That is correct.
 2. a &quot;no doctype found&quot; error. That is a bit misleading, and should probably be removed.

See discussion in:
http://lists.w3.org/Archives/Public/public-bpwg/2009Aug/0025.html

Francois.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38191</commentid>
    <comment_count>1</comment_count>
    <who name="fd">fd</who>
    <bug_when>2010-08-30 12:07:25 +0000</bug_when>
    <thetext>A &quot;present&quot; attribute is now added to the doctypeDecl element in the moki representation of the page under test. This attribute contains &quot;true&quot; when something that looks like a DOCTYPE declaration is detected in the page under test, for instance:

&lt;doctypeDecl
  present=&quot;true&quot;
  publicID=&quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
  systemID=&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot; /&gt;

This attribute is then used to trigger CONTENT_FORMAT_SUPPORT-3 accordingly. The detection of &quot;something that looks like a DOCTYPE declaration&quot; is based on the following regular expression (case is ignored):
 &lt;!doctype\\s</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>