A plugin to allow Wordpress to serve content using the application/xhtml+xml MIME type, based on the client's HTTP ACCEPT request. It also takes into account the q-values of the request, in compliance with
RFC2616 HTTP/1.1. The plugin also handles clients that don't supply an ACCEPT header (e.g., the W3C Validator).
The plugin detects IE6 and above and serves content as text/html, because IE doesn't follow the HTTP 1.1 requirement and can't parse application/xhtml+xml anyway.
Note: if you use this plugin, you MUST ensure that your theme uses the XHTML doctype declaration. If you use anything else (including the HTML5 doctype, <!doctype html>
), many browsers will render your document as an XML tree.
If you come across any bugs or have suggestions, please contact me at
rayofsolaris.net.