<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9963</bug_id>
          
          <creation_ts>2010-06-20 23:57:13 +0000</creation_ts>
          <short_desc>XML declarations are not permitted in HTML, and thus not in polyglots either</short_desc>
          <delta_ts>2010-10-05 13:07:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML/XHTML Compat. Authoring Guide (ed: Eliot Graff)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html#PI-and-xml</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>FPWD</target_milestone>
          
          <blocked>9962</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Leif Halvard Silli">xn--mlform-iua</reporter>
          <assigned_to name="Eliot Graff">eliotgra</assigned_to>
          <cc>eliotgra</cc>
    
    <cc>hsivonen</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>xn--mlform-iua</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36283</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2010-06-20 23:57:13 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36295</commentid>
    <comment_count>1</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2010-06-21 08:11:46 +0000</bug_when>
    <thetext>*** Bug 9970 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36414</commentid>
    <comment_count>2</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2010-06-24 21:01:48 +0000</bug_when>
    <thetext>Replaced with the following:

Processing Instructions and the XML Declaration are both forbidden in polyglot markup.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>