Commit 4ebb1e54 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[view] return HTML5 doctype. Closes #2869426

We dropped xhtml support in 3.17 but we kept providing documents using the
XHTML strict doctype, while our content wasn't conform to the DTD since we
dropped proper namespaces definition as well as declaration of cubicweb DTD
parent 045e449617ad
......@@ -471,7 +471,7 @@ class MainTemplate(View):
one to display error if the first one failed
doctype = '<!DOCTYPE html>'
def set_stream(self, w=None):
if self.w is not None:
......@@ -15,14 +15,15 @@
# You should have received a copy of the GNU Lesser General Public License along
# with CubicWeb. If not, see <>.
from cubicweb.devtools.testlib import CubicWebTC
from cubicweb.devtools.htmlparser import DTDValidator
from cubicweb.devtools.htmlparser import XMLValidator
class LogFormTemplateTC(CubicWebTC):
def _login_labels(self):
valid = self.content_type_validators.get('text/html', DTDValidator)()
valid = self.content_type_validators.get('text/html', XMLValidator)()
req = self.request()
req.cnx.anonymous_connection = True
page = valid.parse_string(self.vreg['views'].main_template(self.request(), 'login'))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment