[FX.php List] Tired of making special solutions for every browser?
Kevin Futter
kfutter at sbc.vic.edu.au
Thu May 7 16:25:06 MDT 2009
On 8/05/09 1:04 AM, "Tim 'Webko' Booth" <tim at nicheit.com.au> wrote:
>
> OK, now I'm intrigued - if I have declared my outputted page as XHTML
> in the head, and it then validates vs a decent validator, and it is
> valid XML - how is it not XHTML??
Tim, Leo is right. If the MIME type of the served document is set as
text/html, then it is NOT interpreted by the browser as XHTML, but plain
HTML. The correct MIME type for XHTML is application/xhtml+xml.
The reason most people don't do this (or know to do this) is because it
fails ABSOLUTELY in IE6 (not sure about subsequent versions). All you get is
a blank page. When people talk about IE6 not supporting XHTML, this is what
they mean. It has to be sent to IE6 as HTML, or no dice.
It's analogous to the document encoding issue. Just because your META tag
says your document is UTF-8, doesn't mean it is!
--
Kevin Futter
Webmaster, St. Bernard's College
http://www.sbc.melb.catholic.edu.au/
#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared
by MailMarshal
#####################################################################################
This e-mail and any attachments may be confidential. You must not disclose or use the information in this e-mail if you are not the intended recipient. If you have received this e-mail in error, please notify us immediately and delete the e-mail and all copies. The College does not guarantee that this e-mail is virus or error free. The attached files are provided and may only be used on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from the use of the attached files, whether caused by the negligence of the sender or not. The content and opinions in this e-mail are not necessarily those of the College.
More information about the FX.php_List
mailing list