Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Mime Types and site validation?

LEGEND ,
Oct 10, 2007 Oct 10, 2007
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.
TOPICS
Server side applications
383
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 10, 2007 Oct 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 11, 2007 Oct 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?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 11, 2007 Oct 11, 2007
LATEST
nevermind...

some of my pages had the wrong doctype; not sure how. You did actually
help me realize that so thanks...
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines