Log in

View Full Version : Xhtml strict 1.0 vs xhtml 1.1



Kyle
10-29-2006, 01:18 AM
Which one is better? XHTML STRICT 1.0 or XHTML 1.1

Twey
10-29-2006, 11:17 AM
IE is incapable of displaying documents sent as application/xhtml+xml. As such, it can't display valid XHTML1.1, which must be sent using an XHTML MIME-type. XHTML 1.0, on the other hand, can validly be sent as text/html; however, doing so has serious problems (http://www.hixie.ch/advocacy/xhtml), so really XHTML should be avoided altogether.

boxxertrumps
10-29-2006, 05:01 PM
will IE 7 support this type?

apperentallly not,
http://www.sitepoint.com/blogs/2005/09/01/microsoft-backs-off-xhtml-support-in-whidbey/
those *Cencored string of vulgar directed at Mircosoft* i hate them.

Twey
10-29-2006, 05:51 PM
Well, the reason it doesn't support application/xhtml+xml is because it doesn't support XHTML at all. However, XHTML is generally close enough to HTML to be parsed as badly-written HTML, which is what happens when XHTML is sent as text/html. As such, all the benefits of using XHTML are effectively mitigated by using text/html, and the end result is worse than using HTML 4.01 Strict, the recommended DTD.