<?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>9970</bug_id>
          
          <creation_ts>2010-06-21 08:00:05 +0000</creation_ts>
          <short_desc>The XML declaration is suggested for polyglot documents</short_desc>
          <delta_ts>2010-10-05 13:07:37 +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>DUPLICATE</resolution>
          <dup_id>9963</dup_id>
          
          <bug_file_loc>http://dev.w3.org/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html#character-encoding</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henri Sivonen">hsivonen</reporter>
          <assigned_to name="Eliot Graff">eliotgra</assigned_to>
          <cc>eliotgra</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</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>36291</commentid>
    <comment_count>0</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2010-06-21 08:00:05 +0000</bug_when>
    <thetext>Polyglot Markup: HTML-Compatible XHTML Documents (18 June 2010) says:
&quot;Use both the XML Declaration and meta tag to specify the appropriate character encoding.&quot;

This is wrong. The syntax of an XML Declaration is a parse error (and parses as a bogus comment) in text/html. Therefore, document that has an XML declaration cannot be a polyglot document.

Please remove the suggestion to use an XML declaration and instead explicitly state that polyglot documents can&apos;t have an XML declaration.

Note that in the absence of a BOM, an XML declaration or transport-layer encoding declaration, XML defaults to UTF-8 anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36294</commentid>
    <comment_count>1</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2010-06-21 08:11:46 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 9963 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>