- From: <bugzilla@wiggum.w3.org>
- Date: Thu, 04 May 2006 14:23:35 +0000
- To: public-qt-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=3196
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