Middleware to degrade XHTML into HTML
|Reported by:||Dave Hodder <dmh@…>||Owned by:||adrian|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I've created a module called XhtmlDegraderMiddleware, which I'd like to submit for possible inclusion.
When Django sends contents as XHTML (with the "application/xhtml+xml" media type) it checks to ensure that the requesting browser can accept XHTML. If so, it does nothing; however if the browser has poor XHTML support it changes the contents to "text/html".
It doesn't interfere with contents that is already using the "text/html" media type.
(If accepted, it could be placed in django/contrib/xhtmldegrader.)
Change History (13)
comment:1 Changed 9 years ago by Simon G. <dev@…>
- Needs documentation set
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Design decision needed
comment:3 Changed 8 years ago by anonymous
- Component changed from Uncategorized to Contrib apps
- Keywords xhtml middleware added
- Owner changed from jacob to adrian