#7154 closed task (fixed)
Link to custom stylesheet removes IE pre-7 hacks
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | not applicable |
Component: | web frontend | Version: | 0.11b2 |
Severity: | normal | Keywords: | genshi iexplorer iexplorer7 xhtml |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I added a custom stylesheet to path/to/my/trac/env/templates/site.html as documented on TracInterfaceCustomization#SiteAppearance:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/" py:strip=""> <!-- Custom match templates go here --> <head py:match="head" py:attrs="select('@*')"> ${select('*')} <link rel="stylesheet" type="text/css" href="${href.chrome('site/style.css')}" /> </head> </html>
I took a look at the resultant HTML output and found that the conditional around the IE pre-7 hacks that had been there before had disappeared (as well as most of the lines between the <head> tags being concatenated).
<!--[if lt IE 7]> <script type="text/javascript" src="/~awl03/cgi-bin/trac.cgi/swish/chrome/common/js/ie_pre7_hacks.js"></script> <![endif]-->
becomes
<script type="text/javascript" src="/~awl03/cgi-bin/trac.cgi/swish/chrome/common/js/ie_pre7_hacks.js"></script>
I don't know if this will cause any problems in IE 7 but I assume the conditional was there for a reason.
Setup details: Ubuntu Linux (Feisty: 7.04), Python 2.5, svn, sqlite
Attachments (0)
Change History (5)
comment:1 by , 17 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 17 years ago
Milestone: | → 0.11 |
---|---|
Resolution: | worksforme |
Status: | closed → reopened |
Type: | defect → task |
(but for the time being, the problem is still present on t.e.o itself, re-opening as a reminder)
comment:3 by , 17 years ago
Milestone: | 0.11 → 0.11.1 |
---|---|
Owner: | set to |
Status: | reopened → new |
Jonas or Chris should clear this up. Not a release blocker for 0.11, so moving it to 0.11.1.
comment:5 by , 17 years ago
Milestone: | 0.11.1 → not applicable |
---|
Thanks for the report, TracInterfaceCustomization#SiteAppearance has been fixed since some times and the
select()
should be:otherwise the conditional comment will be skipped, as you've noticed.