<?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>26597</bug_id>
          
          <creation_ts>2014-08-18 14:07:19 +0000</creation_ts>
          <short_desc>XHTML media-type compatibility</short_desc>
          <delta_ts>2015-06-16 10:28:32 +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>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Evans">gary.evans84</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>hsivonen</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>110233</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Evans">gary.evans84</who>
    <bug_when>2014-08-18 14:07:19 +0000</bug_when>
    <thetext>Within:-
http://www.w3.org/TR/html51/document-metadata.html#attr-meta-http-equiv-content-type

I believe there should be an adjustment or caveat for:-
http://www.w3.org/TR/xhtml-media-types/#media-types

In which content should be &quot;application/xhtml+xml&quot; for XHTML polyglot files.

&quot;Encoding declaration state (http-equiv=&quot;content-type&quot;)
The Encoding declaration state is just an alternative form of setting the charset attribute: it is a character encoding declaration. This state&apos;s user agent requirements are all handled by the parsing section of the specification.

For meta elements with an http-equiv attribute in the Encoding declaration state, the content attribute must have a value that is an ASCII case-insensitive match for a string that consists of: the literal string &quot;text/html;&quot;, optionally followed by any number of space characters, followed by the literal string &quot;charset=&quot;, followed by one of the labels of the character encoding of the character encoding declaration.

A document must not contain both a meta element with an http-equiv attribute in the Encoding declaration state and a meta element with the charset attribute present.

The encoding declaration state may be used in HTML documents and in XML Documents. If the encoding declaration state is used in XML Documents, the name of the character encoding must be an ASCII case-insensitive match for the string &quot;UTF-8&quot; (and	the document is therefore forced to use UTF-8 as its encoding).

The encoding declaration state has no effect in XML documents, and is only allowed in order to facilitate migration to and from XHTML.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110283</commentid>
    <comment_count>1</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2014-08-19 06:16:07 +0000</bug_when>
    <thetext>This should be WONTFIX.

1) Don&apos;t try to use polyglot.
2) The meta doesn&apos;t affect the parser dispatch, so allowing application/xhtml+xml would promote an incorrect mental model of how things work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121056</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2015-06-16 10:28:32 +0000</bug_when>
    <thetext>Moving to WONTFIX per comment 1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>