Click to See Complete Forum and Search --> : How to serv xHTML documents?


Moldarin
04-26-2006, 08:02 PM
Do I serv xHTML documents as <meta http-equiv="content-type" content="xhtml+xml; charset=utf-8" /> or <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />?

NogDog
04-26-2006, 08:49 PM
W3C recommends "application/xhtml+xml", but my understanding is that not all browsers recognize that yet, so it's safer to still use "text/html".

felgall
04-26-2006, 10:41 PM
Does IE7 understand "application/xhtml+xml" or are we still going to be stuck with "text/html" until IE dies?

NogDog
04-26-2006, 10:57 PM
Yet another reason I stick with HTML unless a client absolutely insists it be XHTML (and I can't convince them otherwise). :)

drhowarddrfine
04-27-2006, 12:20 AM
IE7 does not understand xhtml at all. Even inserting that into the head doesn't matter if the server declares it as html/text.

Charles
04-27-2006, 05:37 AM
IE7 does not understand xhtml at all. Even inserting that into the head doesn't matter if the server declares it as html/text.I beg to differ. Actually IE understands XHTML better than any other browser. It's just that the file name has to have a ".xml" extension.

drhowarddrfine
04-27-2006, 09:30 AM
Well, you know what I mean Charles. It doesn't understand xhtml served as xhtml

Charles
04-27-2006, 10:10 AM
HTML ignores that http header but gets it right - more right than Firefox - if you use the ".xml" file extension. So do both and all will be well.