LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-25-2009, 11:37 PM   #1
phptek
LQ Newbie
 
Registered: May 2009
Location: Kapiti, NZ
Distribution: Fedora 14
Posts: 9

Rep: Reputation: 1
wget doesn't fetch CSS in M$ Conditional Comments


Hi all,

I've been using wget on RHL to great success as part of a static website cook-deploy module for a cms (ezpublish), written in bash.

However, when parsing for page dependencies, wget ignores anything inside HTML/SGML comments - which obviously includes M$'s conditional comments, used to feed specific CSS rules to specific versions of Internet Explorer.

Now wget does a grand job of post-processing linked elements (<a>, <link>, <area> etc) in each .html document once downloaded using -k, but because it can't 'see' the M$ conditional comments (They being legit HTML comments) then paths to those IE specific CSS files, referenced in <link> tags inside the conditionals, are not converted like others are.

Is there a way to get wget to convert - as normal - such <link> elements or ignore a specific form of comment or arbitrary string (In this case each IE open/close conditional comment) without having to write some contrived shell code with find/sed/perl/whatever to post-process what wget ignores with -k?

* wget version: - GNU Wget 1.11.4 (Red Hat modified)
* wget command:

#> wget -Emp -nH -k -P/my/local/dir \
--follow-ftp --no-cache --cut-dirs=1 \
-a deploy.log http://my-host.co.nz:8087/my-site

Many thanks for your time and if you need more info - just ask.
Cheers
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS - Is there a way to put several lines of HTML into one line using CSS? Chronothread Programming 12 01-05-2011 06:06 AM
help with wget for offline webpages (CSS?) Ryzol Linux - Software 1 02-21-2008 09:01 AM
conditional execution tostay2003 Programming 5 12-28-2007 03:01 PM
HTML/CSS/JS: Problem with <p> not having an absolute position with CSS. RHLinuxGUY Programming 7 03-03-2007 12:21 AM
CASE conditional la_mafia63 Linux - General 3 07-24-2005 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration