Skip to main content
Inspiring
October 10, 2007
Question

Mime Types and site validation?

  • October 10, 2007
  • 3 replies
  • 380 views
When validating site, I'm getting the the following warning
-------------------------
Conflict between Mime Type and Document Type

The document is being served with the text/html Mime Type which is not a
registered media type for the XHTML 1.1 Document Type. The recommended
media type for this document is: application/xhtml+xml
-------------------------
I work with ASP and I can't figure out why, really, it's doing this nor
can I figure out how to solve it.

I use: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
" http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">

and everything validates fine except for this last thing.
This topic has been closed for replies.

3 replies

Inspiring
October 11, 2007
nevermind...

some of my pages had the wrong doctype; not sure how. You did actually
help me realize that so thanks...
Inspiring
October 11, 2007
Michael Fesser wrote:
> .oO(Art)

>> -------------------------
>> I work with ASP and I can't figure out why, really, it's doing this nor
>> can I figure out how to solve it.
>
> XHTML 1.1 documents should be delivered as application/xhtml+xml. This
> is not recommended, since IE doesn't support this MIME type. So switch
> back to XHTML 1.0 Strict, which can also be delivered as text/html.
>
> Micha
I still use the xhtml 1.0 strict doctype on the page.

I'm just confused why I get a validation error with w3c.org?
Inspiring
October 10, 2007
.oO(Art)

>When validating site, I'm getting the the following warning
>-------------------------
>Conflict between Mime Type and Document Type
>
>The document is being served with the text/html Mime Type which is not a
>registered media type for the XHTML 1.1 Document Type. The recommended
>media type for this document is: application/xhtml+xml
>-------------------------
>I work with ASP and I can't figure out why, really, it's doing this nor
>can I figure out how to solve it.

XHTML 1.1 documents should be delivered as application/xhtml+xml. This
is not recommended, since IE doesn't support this MIME type. So switch
back to XHTML 1.0 Strict, which can also be delivered as text/html.

Micha