HighDots Forums  

mime types in Apache and the validator

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss mime types in Apache and the validator in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hendrik Maryns
 
Posts: n/a

Default mime types in Apache and the validator - 06-06-2008 , 06:58 AM






Hi all,

First of all, this is probably a little OT here, please point me to a
better place if you deem that appropriate.

My website (see sig) validates fine, but with one annoying warning:

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

The index file is called index.shtml since it uses some SSI. To tell
this to the server, I include a little .htaccess file in the directory
containing the following line:

DirectoryIndex index.shtml

I tried to fix the warning by adding the following:

# AddType application/xhtml+xml shtml html

But then the SSI no longer works, and Firefox shows the page with a
white border around <body>. Same thing happens if I call it index.xhtml.

Seems like this is a Firefox bug? What is the proper way to handle this?

Cheers, H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html

Reply With Quote
  #2  
Old   
Andreas Prilop
 
Posts: n/a

Default Re: mime types in Apache and the validator - 06-06-2008 , 07:50 AM






On Fri, 6 Jun 2008, Hendrik Maryns wrote:

Quote:
First of all, this is probably a little OT here,
please point me to a better place if you deem that appropriate.
<news:comp.infosystems.www.servers.unix>

Quote:
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
Short answer:

Do not use application/xhtml+xml and XHTML 1.1 on the web if you want
to be read by everyone. You could do this for some testing etc.

For publication on the web, use text/html with HTML 4 Strict or
XHTML 1.0 Strict.

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell


Reply With Quote
  #3  
Old   
Hendrik Maryns
 
Posts: n/a

Default Re: mime types in Apache and the validator - 06-09-2008 , 05:58 AM



Beauregard T. Shagnasty schreef:
Quote:
Hendrik Maryns wrote:

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.

See this:
http://tekrider.net/html/doctype.php

The recommended media type for this document is: application/xhtml+xml

..and Internet Explorer users won't be able to use your page.
Thanks both. That’s what I suspected. I’ll live with the warning until
the world gets better (i.e. Firefox displays it properly and IE displays
it at all).

Cheers, H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.