Docunext

  • About

HTML versus XHTML

March 18th, 2009

Internet Explorer doesn't support XHTML strict? What a surprise. SARCASM!

I've given up! After getting very annoyed with document.write and the vast numbers of web users who still use Internet Explorer, I've decided to only use XHTML on private web applications, and continue using HTML for public web applications and pages (like phunkybb). Lame, yes. Practical, yes. Ideal, no.

This might help too though:

http://www.ibm.com/developerworks/xml/library/x-tipapachexhtml/

And this for PHP:

if(strstr($_SERVER['HTTP_USER_AGENT'],"MSIE")) {    ini_set('default_mimetype','text/html');} else {    ini_set('default_mimetype','application/xhtml+xml');}
Yearly Indexes: 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020