A plugin to serve WordPress content using the application/xhtml+xml MIME type
Author: | Samir Shah (profile at wordpress.org) |
WordPress version required: | 2.0.2 |
WordPress version tested: | 3.4.1 |
Plugin version: | 1.5 |
Added to WordPress repository: | 18-09-2009 |
Last updated: | 23-08-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | http://rayofsolaris.net/code/xhtml-content-ne... |
Total downloads: | 2 263 |
Click to start download |
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 IE8 and lower and serves content as text/html, because it 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 you have and appropriate DTD and XHTML namespace in your document. If you don't, some browsers may render your document as an XML tree. You must also ensure that your theme produces well-formed and valid XHTML, otherwise you will get XML parsing errors in your browser.
This plugin requires PHP version 5 or greater.
If you come across any bugs or have suggestions, please use the plugin support forum or contact me at rayofsolaris.net. Please check the FAQ for common issues.