<?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>16516</bug_id>
          
          <creation_ts>2012-03-25 19:32:13 +0000</creation_ts>
          <short_desc>Validator does not recognize the DOCTYPE legacy string</short_desc>
          <delta_ts>2012-12-08 12:47:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://validator.w3.org/nu/?doc=data%3Atext%2Fhtml%2C%253C!DOCTYPE%2520html%2520SYSTEM%2520%27about%3Alegacy-compat%27%253E%253Ctitle%253E%253C%2Ftitle%253E&amp;showsource=yes</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="Leif Halvard Silli">xn--mlform-iua</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          <cc>hsivonen</cc>
    
    <cc>mike</cc>
    
    <cc>xn--mlform-iua</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66027</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2012-03-25 19:32:13 +0000</bug_when>
    <thetext>The validator does not accept the HTML5 legacy doctype:

http://www.w3.org/TR/html5/syntax.html#doctype-legacy-string

There are two variants of this doctype:

&lt;!DOCTYPE html SYSTEM &quot;about:legacy-compat&quot;&gt;
&lt;!DOCTYPE html SYSTEM &apos;about:legacy-compat&apos;&gt;

I would support putting out a warning - e.g. one could just quote what the spec says: 

]] The DOCTYPE legacy string should not be used unless the document is generated from a system that cannot output the shorter string. [[

But it does not make sense to stamp is as invalid, like the validator currently does, when the spec says that it is valid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66028</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-03-26 03:15:31 +0000</bug_when>
    <thetext>The cause of this is in the HTML parser code, so I recommend raising a bug for it against the HTML parser component at http://bugzilla.validator.nu

The current HTML parser code actually does specifically recognize &quot;about:legacy-compat&quot;. It&apos;s just that it also specifically emits an error message for it instead of a warning, or instead of emitting nothing. I&apos;m not sure why Henri has it doing that, but given the fact the spec says it&apos;s not an error, it seems like it should not at least not be emitting an error.

My vote would be for it to emit a specific warning saying, &quot;The DOCTYPE legacy string should not be used unless the document is generated from a system that cannot output &lt;!DOCTYPE html&gt;.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66031</commentid>
    <comment_count>2</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2012-03-26 03:36:45 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; The cause of this is in the HTML parser code, so I recommend raising a bug for
&gt; it against the HTML parser component at http://bugzilla.validator.nu

Done: http://bugzilla.validator.nu/show_bug.cgi?id=916</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74212</commentid>
    <comment_count>3</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2012-09-21 13:09:45 +0000</bug_when>
    <thetext>https://hg.mozilla.org/projects/htmlparser/rev/98b4f408aa67

Needs Mike to redeploy at the W3C.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>