web/views/basecontrollers.py
branchstable
changeset 1839 2cdd0d1d3888
parent 1838 d4cbcc15c01c
child 1844 ec51bf1b8be3
--- a/web/views/basecontrollers.py	Mon May 18 12:33:00 2009 +0200
+++ b/web/views/basecontrollers.py	Mon May 18 13:41:53 2009 +0200
@@ -36,7 +36,8 @@
     # XXX factor out, watch view.py ~ Maintemplate.doctype
     if self.req.xhtml_browser():
         dt = STRICT_DOCTYPE
-    dt = STRICT_DOCTYPE_NOEXT
+    else:
+        dt = STRICT_DOCTYPE_NOEXT
     head = u'<?xml version="1.0"?>\n' + dt
     return head + u'<div xmlns="http://www.w3.org/1999/xhtml" xmlns:cubicweb="http://www.logilab.org/2008/cubicweb">%s</div>' % source.strip()