I have been working with XHTML for a while now, but I haven’t been using it entirely correctly. If the HTML document is passed with XHTML doctype then the document should be sent using the specific “application/xhtml+xml” header. However, until now I have been using the HTML header, “html/text”. The reason for this is that out-dated browsers, for example Internet Explorer 6, do not understand the specific application/xhtml+xml header and just break on receiving the request. But with a smidgen of PHP, the page sends the correct header to browsers that accept it, and the html/text. Now the page is correctly sent to the majority of modern browsers. But this means the pages have to be well formed XML documents… which they all are, fingers-crossed.
XHTML Application
Tuesday 18th May 2004
Warning: I am in the process of migrating to a new system. The blog should still function but there might be some funkyness in certain places.
This will be fixed soon.