diff -r 81c8b5312f9c -r 46859078c866 web/request.py --- a/web/request.py Wed Jul 29 10:43:30 2009 +0200 +++ b/web/request.py Wed Jul 29 10:44:36 2009 +0200 @@ -26,6 +26,7 @@ from cubicweb.common.mail import header from cubicweb.common.uilib import remove_html_tags from cubicweb.utils import SizeConstrainedList, HTMLHead +from cubicweb.view import STRICT_DOCTYPE from cubicweb.web import (INTERNAL_FIELD_VALUE, LOGGER, NothingToEdit, RequestError, StatusResponse) @@ -721,5 +722,11 @@ return 'application/xhtml+xml' return 'text/html' + def document_surrounding_div(self): + if self.xhtml_browser(): + return (u'\n' + STRICT_DOCTYPE + + u'
') + return u'
' + from cubicweb import set_log_methods set_log_methods(CubicWebRequestBase, LOGGER)