[Bug 9963] New: XML declarations are not permitted in HTML, and thus not in polyglots either

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9963

           Summary: XML declarations are not permitted in HTML, and thus
                    not in polyglots either
           Product: HTML WG
           Version: unspecified
          Platform: All
               URL: http://dev.w3.org/html5/html-xhtml-author-guide/html-x
                    html-authoring-guide.html#PI-and-xml
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML/XHTML Compatibility Authoring Guide (ed: Eliot
                    Graff)
        AssignedTo: eliotgra@microsoft.com
        ReportedBy: xn--mlform-iua@xn--mlform-iua.no
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html@w3.org,
                    xn--mlform-iua@xn--mlform-iua.no,
                    eliotgra@microsoft.com


Current text:

]]
2. Processing Instructions and the XML Declaration

A polyglot document does not use processing instructions. Note that the parsing
rules for the XML declaration are not processing instructions and are defined
separately in Prolog and Document Type Declaration.
[[

Suggested replacement:

]]
2. Processing Instructions and the XML Declaration 

For HTML-compatibility and HTML5 conformance, Processing Instructions (PIs) and
the XML Declaration is forbidden in polyglot markup.
[[

JUSTIFICATION: PIs are forbidden in HTML5. And so are the XML declaration.
Perhaps we could allow them, if we had a good reason. However, the first aim
with the Polyglot spec should be to take for granted what HTML5 specifies –
the task of the spec is primarily to *identify* what is compatible. If we
disagree with HTML5, then there might also be reason to seek to change HTML5.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Sunday, 20 June 2010 23:57:15 UTC