#3700: Middleware to degrade XHTML into HTML
--------------------------------------------+-------------------------------
   Reporter:  Dave Hodder <[EMAIL PROTECTED]>  |                Owner:  adrian  
              
     Status:  new                           |            Component:  Contrib 
apps          
    Version:  SVN                           |           Resolution:             
           
   Keywords:  xhtml middleware              |                Stage:  Design 
decision needed
  Has_patch:  0                             |           Needs_docs:  0          
           
Needs_tests:  0                             |   Needs_better_patch:  0          
           
--------------------------------------------+-------------------------------
Comment (by Johann Queuniet <[EMAIL PROTECTED]>):

 You might want to take a look at the similar middleware written by Sune
 Kirkeby two years ago:
 
http://code.ibofobi.dk/public/file/trunk/ibofobi/src/ibofobi/middleware/xhtml.py?rev=1536
 
 It addresses a few issues of the patch given here, like a ill-ordered
 middleware stack with a GZip compressor.
 
 Also, I think the _supports_xhtml function is too hack-ish. What if IE 8
 still doesn't support this mimetype? What if another browser has the same
 behavior? Browser often use */* as a mere fallback for content they're
 going to download or dispatch to a plugin, I don't think it's appropriate
 to take it in account instead of sending the expected text/html in this
 case. Also, what about search engines? The way Google handles pure XHTML
 is still not exactly perfect, and it can end up listed as foreign content
 (see
 http://www.google.com/search?q=site%3Awww.lirmm.fr+application%2Fxhtml%2Bxml
 for an example).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3700#comment:4>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to