Opened 19 years ago

Closed 19 years ago

Last modified 18 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: no UI/UX: no

Description

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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xml:lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
 <head>
 <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 by Adrian Holovaty, 19 years ago

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