This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25232 - De-emphasis DOCTYPE: shift focus from ”required preamble” to ”required rendering mode”
Summary: De-emphasis DOCTYPE: shift focus from ”required preamble” to ”required render...
Status: RESOLVED MOVED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC All
: P2 editorial
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL: http://www.w3.org/html/wg/drafts/html...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-02 16:25 UTC by Leif Halvard Silli
Modified: 2016-04-25 18:12 UTC (History)
5 users (show)

See Also:


Attachments

Description Leif Halvard Silli 2014-04-02 16:25:58 UTC
SITUATION: 

  Spec makes clear that the requirement to use a conforming DOCTYPE is a legacy behavior issue. Thus, the underlying logic is that we should get rid of the legacy necessity.

  Then the spec goes on describing the DOCTYPE as 
   1) ”a required preamble” which 
   2) ”ensures that the browser makes a best-effort attempt at following 
      the relevant specifications”.
  I.e. spec says DOCTYPE triggers no-quirks mode.

  The problem is that neither of above two statements are completely true. How true they are, depends on context:

1) Above spec quotations are true only for HTML pages in Web browsers.

2) Inside @srcdoc, the spec itself says that the DOCTYPE is optional:
   http://www.w3.org/html/wg/drafts/html/master/single-page.html#attr-iframe-srcdoc
   Thus, DOCTYPE is not required for @srcdoc documents.

3) For HTML mail, the effect of DOCTYPE falls in 3 categories,
   with well known implementations in each category:

   A) DOCTYPE ignored, falling back to no-quirks, is implemented by
      * Web mail apps (because app itself is in no-quirks) Examples: 
        # Microsoft Outlook.com
        # Google Gmail
      * Mozilla Gaia of Firefox OS (because it’s a offline Webmail app?)

   B) DOCTYPE ignored, falling back to quirks mode. Implemented by:
      * Mozilla Thunderbird 
        (https://bugzilla.mozilla.org/show_bug.cgi?id=335499)
      * Microsoft Email app for Windows 8.1

   C) DOCTYPE treated same as in Web browsers:
      * Microsoft Windows Live Mail 2012 (latest release: 2014)
      * Microsoft Windows Mail,
      * Microsoft Outlook Express,
      * Apple Mail for OSX
      * Apple mail for iOS

    (Though this be another bug, my general proposal for HTML mail is
     that A) (DOCTYPE ignored, falling back to no-quirks) should be 
     the rule for HTML email.)
        

PROPOSAL:

  Rework the spec towards saying that

  a) conforming documents are required to be authored so that
     they cause no-quirks rendering.
  b) user agents are required to  
     EITHER treat the DOCTYPE as OPTIONAL,
            in which case the UA MUST always use no-quirks mode.
            (This ought to be preferred behavior for 'new' specs.)
     OR, they must adhere to the mode selection rules defines
            by the HTML specification.
  c) Sub sections of the spec and "sub specifications" may 
     give more specific rules for certain usage contexts and/or
     media types. Examples: @srcdoc, HTML email and Web mail.
Comment 1 Travis Leithead [MSFT] 2016-04-25 18:12:54 UTC
HTML5.1 Bugzilla Bug Triage: Moved to https://github.com/w3c/html/issues/253

If this resolution is not satisfactory, please copy the relevant bug details/proposal into a new issue at the W3C HTML5 Issue tracker: https://github.com/w3c/html/issues/new where it will be re-triaged. Thanks!