Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the HTML-Packer CPAN distribution.

Report information
The Basics
Id: 61497
Status: resolved
Priority: 0/
Queue: HTML-Packer

People
Owner: Nobody in particular
Requestors: colink [...] perlDreamer.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.2
Fixed in: 0.05_03



Subject: Preserve conditional comments for IE
As distasteful as it is, we have code which uses conditional comments for IE to load in extra CSS and JS files to work with that browser. Currently, HTML::Packer removes those. While we can pack without removing comments, we'd like it if conditional comments could be recognized and packed, instead of being discarded. Sample syntax: <!--[if IE 7]> <link href="^/(root/import/gallery-templates/admin_ie7.css);" rel="stylesheet" type="text/css" /> <![endif]-->
On Mon Sep 20 13:58:53 2010, colink@perlDreamer.com wrote: Show quoted text
> As distasteful as it is, we have code which uses conditional comments > for IE to load in extra CSS and JS files to work with that browser. > Currently, HTML::Packer removes those. > > While we can pack without removing comments, we'd like it if conditional > comments could be recognized and packed, instead of being discarded. > > Sample syntax: > > <!--[if IE 7]> > <link href="^/(root/import/gallery-templates/admin_ie7.css);" > rel="stylesheet" type="text/css" /> > <![endif]-->
Hi, thanks for the feedback. I don't know if I will make it today, but in 0.05_03 this is implemented. You can find the latest versions on http://github.com/nevesenin/html-packer-perl. Merten