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 9963 - XML declarations are not permitted in HTML, and thus not in polyglots either
Summary: XML declarations are not permitted in HTML, and thus not in polyglots either
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML/XHTML Compat. Authoring Guide (ed: Eliot Graff) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: FPWD
Assignee: Eliot Graff
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/html-xhtml-au...
Whiteboard:
Keywords:
: 9970 (view as bug list)
Depends on:
Blocks: 9962
  Show dependency treegraph
 
Reported: 2010-06-20 23:57 UTC by Leif Halvard Silli
Modified: 2010-10-05 13:07 UTC (History)
6 users (show)

See Also:


Attachments

Description Leif Halvard Silli 2010-06-20 23:57:13 UTC
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.
Comment 1 Henri Sivonen 2010-06-21 08:11:46 UTC
*** Bug 9970 has been marked as a duplicate of this bug. ***
Comment 2 Eliot Graff 2010-06-24 21:01:48 UTC
Replaced with the following:

Processing Instructions and the XML Declaration are both forbidden in polyglot markup.