Browsers are extremely good at parsing whatever gets thrown at them. They accept a mix of self-closing and unclosed tags easily.
If you can describe a use case where self-closing tags create an actual, reproducible problem, then we'll have a discussion. If you were just asking for the purity of the generated HTML, we have chosen not to bother as long as pages work. -- Aymeric. On 17 août 2014, at 19:33, noegry <[email protected]> wrote: > But I don't sure that when it's using XHTML and HTML5 syntax together and it > should use one syntax for rending views. > It might cause issues when templates are using HTML5 syntax but forms are > using XHTML syntax? > > On Sunday, August 17, 2014 10:28:43 PM UTC+8, Florian Apolloner wrote: > That is not just XHTML but perfectly valid HTML5. > > Cheers, > Florian > > On Sunday, August 17, 2014 8:30:33 AM UTC+2, noegry wrote: > Could Django provides a way to render forms in HTML5 syntax? It now render > forms in XHTML syntax as > <input.../> > Or could it in the settings provides an option as USE_HTML5 for applying that? > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/1620c231-1002-484a-8166-ac23848aa6c7%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/928E87AE-F65F-4E63-8B4D-CCE35A5741DB%40polytechnique.org. For more options, visit https://groups.google.com/d/optout.
