W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2006

[Bug 3196] [Ser] DOCTYPE MUST be HTML or html

From: <bugzilla@wiggum.w3.org>
Date: Thu, 04 May 2006 14:23:35 +0000
To: public-qt-comments@w3.org
Message-Id: <E1Fbejv-0000UQ-3z@wiggum.w3.org>


           Summary: [Ser] DOCTYPE MUST be HTML or html
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Serialization
        AssignedTo: scott_boag@us.ibm.com
        ReportedBy: joannet@ca.ibm.com
         QAContact: public-qt-comments@w3.org

According to the Serialization spec, if the output method is HTML and
doctype-system parameter is specified, then
... "the HTML output method MUST output a document type declaration immediately
before the first element. The name following <!DOCTYPE MUST be HTML or html. "

According to the HTML 4 DTD:

        <!ENTITY % html.content "HEAD, BODY">

        <!ELEMENT HTML O O (%html.content;)    -- document root element -->
        <!ATTLIST HTML
         %i18n;                               -- lang, dir --

The html element is optional (O O).  Thus, an html document can begin with a
tag other than <html> or <HTML>.  It should still validate as long as the name
following <!DOCTYPE is the same as the top level element in the html document. 
Should the Serialization spec allow this for the html output method?  even
though this is supposedly allowed in the HTML spec (I assume to accommodate
lazy html writers) and users can always use XHTML output method to get the
right <!DOCTYPE.
Received on Thursday, 4 May 2006 14:23:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:12 UTC