<?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>23738</bug_id>
          
          <creation_ts>2013-11-06 09:11:13 +0000</creation_ts>
          <short_desc>NU validator issues error for any “obsolete permitted DOCTYPE”</short_desc>
          <delta_ts>2013-11-07 08:32:37 +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>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/html/wg/drafts/html/master/syntax.html#obsolete-permitted-doctype-string</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</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>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>95848</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2013-11-06 09:11:13 +0000</bug_when>
    <thetext>NU validator screams “Error: Legacy doctype” even if the DOCTYPE is a ”obsolete
permitted DOCTYPE&quot;.

The HTML specification is clear on the fact that there should only be WARNING messages  - and not ERROR messages - for obsolete permitted DOCTYPEs:

http://www.w3.org/html/wg/drafts/html/master/obsolete.html#warnings-for-obsolete-but-conforming-features

To stamp an obsolete permitted DOCTYPE as error is the opposite of ”To help authors transition from HTML4 and XHTML”, which is the spec’s motivation for allowing these doctypes.

(Duplicate bug: http://bugzilla.validator.nu/show_bug.cgi?id=980)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95853</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2013-11-06 10:12:30 +0000</bug_when>
    <thetext>Fixed already.

https://bitbucket.org/validator/validator/commits/7625938e679a27265ae625e57b5ed33c063dfacb

http://hg.mozilla.org/projects/htmlparser/rev/2a1a57b4c8ff</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95861</commentid>
    <comment_count>2</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2013-11-06 12:03:18 +0000</bug_when>
    <thetext>Thanks. Big (and fast(!) improvement. However, the new message goes like this:

   “Warning: Obsolete doctype.
    Expected &lt;!DOCTYPE html&gt;.“

But for the XHTML1 Transitional doctype, one gets this, much more informative message:

   “Error: Almost standards mode doctype.
    Expected &lt;!DOCTYPE html&gt;”

Also, it seems useful to borrow spec’s exact wording - &quot;obsolete permitted doctype&quot;.

Therefore, please consider something like this:

   ”Warning: No-quirks mode, obsolete permitted DOCTYPE.
    Expected &lt;!DOCTYPE html&gt;”

Justification: A message that just says ”obsolete doctype”, without using the word ”error”, is a bit confusing. Also, “obsolete doctype” is very uneducating - it is better to indicate *why* “obsolete” only leads to a warning, namely, because the DOCTYPE triggers no-quirks mode and because it is on the list of &quot;obsolete permitted doctypes&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95937</commentid>
    <comment_count>3</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2013-11-07 08:32:21 +0000</bug_when>
    <thetext>Now tracking the language of the warning message in bug 23753.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>