always explicitly close <base> tags because of an old IE6 bug
authorFlorent <florent@secondweb.fr>
Thu, 30 Jul 2009 22:33:46 +0200
changeset 2580 6e9453fd11ef
parent 2564 5f38f5eaff86
child 2581 2833df289165
always explicitly close <base> tags because of an old IE6 bug
web/views/basetemplates.py
--- a/web/views/basetemplates.py	Wed Jul 29 12:46:09 2009 +0200
+++ b/web/views/basetemplates.py	Thu Jul 30 22:33:46 2009 +0200
@@ -138,7 +138,8 @@
         w = self.whead
         lang = self.req.lang
         self.write_doctype()
-        w(u'<base href="%s" />' % xml_escape(self.req.base_url()))
+        # explictly close the <base> tag to avoid IE 6 bugs while browsing DOM
+        w(u'<base href="%s"></base>' % xml_escape(self.req.base_url()))
         w(u'<meta http-equiv="content-type" content="%s; charset=%s"/>\n'
           % (content_type, self.req.encoding))
         w(u'\n'.join(additional_headers) + u'\n')