web/request.py
changeset 499 ad3de58a8e30
parent 495 f8b1edfe9621
child 610 30cb5e29a416
--- a/web/request.py	Wed Jan 28 15:50:14 2009 +0100
+++ b/web/request.py	Wed Jan 28 15:52:45 2009 +0100
@@ -640,7 +640,11 @@
     
     def xhtml_browser(self):
         useragent = self.useragent()
-        if useragent and ('MSIE' in useragent or 'KHTML' in useragent):
+        # MSIE does not support xml content-type
+        # quick fix: Opera supports xhtml and handles namespaces
+        # properly but it breaks jQuery.attr()
+        if useragent and ('MSIE' in useragent or 'KHTML' in useragent
+                          or 'Opera' in useragent):
             return False
         return True