Middleware to degrade XHTML into HTML
|Reported by:||Owned by:||Adrian Holovaty|
|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 10 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Design decision needed|
comment:3 Changed 9 years ago by
|Component:||Uncategorized → Contrib apps|
|Keywords:||xhtml middleware added|
|Owner:||changed from Jacob to Adrian Holovaty|