Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#544 closed defect (fixed)

[patch] Minor admin_templates/base.html patch

Reported by: sune.kirkeby@… Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: minor Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Index: django/conf/admin_templates/base.html
--- django/conf/admin_templates/base.html	(revision 671)
+++ django/conf/admin_templates/base.html	(working copy)
@@ -1,5 +1,5 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
-<html xml:lang="en">
+<html xmlns="" lang="en" xml:lang="en">
 <title>{% block title %}{% endblock %}</title>
 <link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/base.css{% endblock %}" />

When serving the admin-site as application/xhtml+xml, this patch makes Firefox display the
actual page, and not the generic 'no stylesheet for this XML document' page.

Change History (1)

comment:1 Changed 13 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [706]) Fixed #544 -- Added xmlns and lang attributes to <html> tag in admin_templates/base.html, so that the admin works when served as application/xhtml+xml. Thanks, Sune Kirkeby

Note: See TracTickets for help on using tickets.
Back to Top