<?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>9052</bug_id>
          
          <creation_ts>2010-02-17 14:11:20 +0000</creation_ts>
          <short_desc>All DOCTYPE variants that trigger standards mode pre-HTML5 should continue to trigger standards mode in HTML5</short_desc>
          <delta_ts>2010-10-22 10:21:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>9071</dup_id>
          
          <bug_file_loc>http://www.xn--mlform-iua.no/html4-or-html5/</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="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>julian.reschke</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>xn--mlform-iua</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32274</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2010-02-17 14:11:20 +0000</bug_when>
    <thetext>This variant of the HTML4 strict DOCTYPE,

&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; 
[&lt;!ATTLIST P myattr   CDATA #implied &gt;]&gt;

triggers Strict parsing in pre-HTML5 browsers.

But in Opera 10.5beta, Minefield and Safari 4 it has started to trigger QuirksMode.

According to Lachlan, this is in line with HTML5: 
http://www.w3.org/mid/4B7BB225.9050908@lachy.id.au

According to Maciej it is not in line with HTML5: 
http://www.w3.org/mid/685C7306-C689-4A04-8987-05670EF3B053@apple.com

This bug requester thinks that it should be made clear that it is not in line with HTML5. The spec must eventually change so it is clear that it doesn&apos;t trigger QuirksMode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32275</commentid>
    <comment_count>1</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2010-02-17 14:12:50 +0000</bug_when>
    <thetext>Corrected the example URL</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32373</commentid>
    <comment_count>2</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2010-02-18 08:58:15 +0000</bug_when>
    <thetext>Minefield: I trusted Lachlan when I said that Mozila Minefield (Firefox 3.7a2pre)  behaves like Opera 10.5beta.

My own testing, however, showed that Minefield behaves like Firefox 3.6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32378</commentid>
    <comment_count>3</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2010-02-18 09:37:08 +0000</bug_when>
    <thetext>Philip T. pointed out that HTML5 does require Standards Mode whenever the doctype contains a URL/System Identifier - provided that the internal DTD subset section (in my example: &quot;[&lt;!ATTLIST P myattr   CDATA #implied &gt;]&quot;) comes *after* the System Identifier.

http://www.w3.org/mid/4B7C03BA.4050903@cam.ac.uk

As the draft says: 

&quot;Anything else
    Parse error. Switch to the bogus DOCTYPE state. (This does not set the DOCTYPE token&apos;s force-quirks flag to on.)&quot;
http://dev.w3.org/html5/spec/Overview.html#before-doctype-system-identifier-state 

And, sure enough, Opera 10.5 Beta behaves exactly that way, as can be verified in my Take 2 of the test 

http://www. xn--mlform-iua.no/html4-or-html5/take2

So does this mean that this bug is solved? No. I agree with the view of Boris Z: «going from treating a doctype as standards to treating a doctype as quirks seems like a bad idea to me»

http://www.w3.org/mid/4B7C0A50.305@mit.edu

On what basis can HTML5 say that this or that DOCTYPE should trigger QuirksMode if it now triggers StandardsMode? Can it be a goal to punish authors for using even a non-standard doctype? Or even to reward them with a method for triggering QuirksMode?

In my view, no. If we consider that QuirksMode has any benefit, then we should even define a specific HTML5 doctype that would trigger QuirksMode, so that authors could author a page according to HTML5 syntax rules and still get QuirksMode. (After all, HTML5 defines standards mode as the default.)

Remedy: 

To fix this bug, the section about &quot;Parsing HTML documents&quot; must be refined so that *only* those doctypes and doctype patterns that are _known_ to cause QuirksMode, will cause QuirksMode. As an exampe, all the HTML4 doctypes that W3 has produced and which are known to not cause QuirksMode, must continue to not cause quirks mode, even if they contain a internal DTD subset (or DOCTYPE comments or any other &quot;stuff&quot; that currently doesn&apos;t cause QuirksMode.) 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32638</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-02-25 02:42:55 +0000</bug_when>
    <thetext>I&apos;m marking this as a dupe of later bug 9071, because bug 9071 has data. Please feel free to reopen this bug if you think it is a separate issue.

*** This bug has been marked as a duplicate of bug 9071 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>