#19363: Admin pages no longer validate as XHTML
-------------------------------+---------------------------------------
Reporter: gcc | Owner: nobody
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 1.5-alpha-1
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+---------------------------------------
Changes (by aaugustin):
* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0
Comment:
Indeed, best practices for web development have evolved since #544 was
fixed 7 years ago, and the admin templates
[https://docs.djangoproject.com/en/dev/releases/1.4/#html5-doctype were
changed to HTML5 in Django 1.4] (not in 1.5). They aren't intended to
validate as XHTML any longer.
Since they used to be valid XHTML, they still mostly are, but that will be
less and less true as HTML5 code that isn't valid XHTML, such as single
unclosed tags, is introduced by new commits. Allowing to override just the
doctype won't help in the long term. It would set false expectations.
To sum up, XHTML validity isn't guaranteed by Django any longer. If you
need it, you should maintain your own templates.
--
Ticket URL: <https://code.djangoproject.com/ticket/19363#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.