﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29681	Support XHTML5 (XML serialization of HTML5)	Nils Fredrik Gjerull	nobody	"Frameworks and libraries that generate html should output well-formed html that can be used for both HTML serialization (text/html) and XML serialization (application/xhtml+xml). This implies that Django should continue to output XML compatible markup even for HTML5.

This do not mean that Django need to be restricted by the XHTML-Transitional and XHTML-Strict standard. It only means that HTML5 needs to be written in a XML compatible style.

This affects Django in three ways:
1. HTML must be well-formed. All start-tags needs an end-tag (except self-closing tags). This is already the case.
1. All self-closing tags must end with '/>'.
2. All boolean attributes must have a value e.g 'checked=""checked""'.

I will say that this time is the best time ever to serve pages with application/xhtml+xml, because all browsers supports it. IE was the road blocker for year, but since IE9 it supports it as well. Se a list of the [https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation/List_of_default_Accept_values default value of the Accept header] for various browsers from Mozilla.

See:
* [https://www.w3.org/TR/html/introduction.html#html-vs-xhtml]
* [https://www.w3.org/TR/html/the-xhtml-syntax.html]
* [https://en.wikipedia.org/wiki/HTML5#XHTML_5_(XML-serialized_HTML_5)]"	Cleanup/optimization	closed	Forms	2.1	Normal	wontfix			Unreviewed	1	0	0	0	0	0
