Ticket #9492: 0001-Remove-non-XML-conditional-comment-that-broke-XHTML.patch

File 0001-Remove-non-XML-conditional-comment-that-broke-XHTML.patch, 1.6 KB (added by Gabriel, 16 years ago)

patch

  • django/contrib/admin/templates/admin/base.html

    From 35440d3aa57e9237fd24360cd3a6ed50a548fc92 Mon Sep 17 00:00:00 2001
    From: Gabriel <g2p.code@gmail.com>
    Date: Sun, 5 Apr 2009 19:48:07 +0200
    Subject: [PATCH] Remove non-XML conditional comment that broke XHTML rendering.
    
    Closes #9492 .
    This comment removed styles for IE5 and lower.
    ---
     django/contrib/admin/templates/admin/base.html |    2 --
     1 files changed, 0 insertions(+), 2 deletions(-)
    
    diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html
    index e969d1b..8cab439 100644
    a b  
    22<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
    33<head>
    44<title>{% block title %}{% endblock %}</title>
    5 <![if gte IE 6]><!-- Block all styles from IE5 and lower -->
    65<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/base.css{% endblock %}" />
    76{% block extrastyle %}{% endblock %}
    87<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% load adminmedia %}{% admin_media_prefix %}css/ie.css{% endblock %}" /><![endif]-->
    98{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% admin_media_prefix %}css/rtl.css{% endblock %}" />{% endif %}
    10 <![endif]>
    119{% block extrahead %}{% endblock %}
    1210{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
    1311</head>
Back to Top