<?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>5489</bug_id>
          
          <creation_ts>2008-02-19 00:09:52 +0000</creation_ts>
          <short_desc>Incorrect Mimetype warning</short_desc>
          <delta_ts>2008-02-19 00:50:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>check</component>
          <version>0.8.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></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="Leon Pennington">leon</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>19114</commentid>
    <comment_count>0</comment_count>
    <who name="Leon Pennington">leon</who>
    <bug_when>2008-02-19 00:09:52 +0000</bug_when>
    <thetext>My page at http://www.leonscape.co.uk/ is xhtml 1.1, but I&apos;m getting a warning about a mimetype conflict. Its reporting text/html when it should be application/html+xml.

The only problem is my page is setting this dynamically in PHP and is checking the user agent acceptance header (HTTP_ACCEPT) to see if the user agent will accept a application/html+xml page.

This validator does not accept that mimetype so my page won&apos;t send it. If I ignore the check and send it anyway it validates, but this breaks some browsers (you can guess which ).

So application/html+xml needs adding to the accepted types.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19115</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-02-19 00:50:01 +0000</bug_when>
    <thetext>This has been discussed many times on the www-validator mailing-list and here on the bugzilla, so I will just summarize:

* If you want to server XHTML as text/html to legacy user agents, you should be using XHTML 1.0, which has HTML compatibility guidelines precisely for that.

* If for some reason you really want to use XHTML 1.1, then make your php script send application/xhtml+xml as a *default*, not the other way around. It will still be against the specifications, but less often.

* If for some reason you really really want to serve XHTML 1.1 as text/html by default, live with the fact that the validator tells you off for it. It&apos;s just a warning. And if you can&apos;t stand it, there&apos;s always http://validator.w3.org/docs/users.html#option-accept</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>