djangosnippets.org: Latest snippets posted by dmhhttps://djangosnippets.org/users/dmh/2007-08-01T15:45:16.045472-05:00dmhXhtmlDegraderMiddleware
2007-08-01T15:45:16.045472-05:00dmhhttps://djangosnippets.org/snippets/351/<p>The XhtmlDegraderMiddleware class is designed to make it easier to deploy XHTML contents onto the World Wide Web. The correct MIME media type for sending XHTML is <code>application/xhtml+xml</code> -- the <code>text/html</code> media type is also acceptable provided <a href="http://www.w3.org/TR/2002/REC-xhtml1-20020801/#guidelines">certain guidelines</a> are followed.</p>
<p>The vast majority of web browsers released from 2002 …</p>
Freely redistributable