[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Wget not finding image references in javascript source
From: |
Darshit Shah |
Subject: |
Re: [Bug-wget] Wget not finding image references in javascript source |
Date: |
Tue, 1 Mar 2016 07:59:02 +0100 |
User-agent: |
Mutt/1.5.24+60 (909cf6dd067c) (2015-08-30) |
Hi Zane,
The question of supporting links and images emebdded via javascript props up
fairly often. JS is a dynamic scripting language and the code path taken
depends on the user's interaction with the page. To simulate this, we would
need a full JS engine inside of Wget. Apart from being large and clumsy this
would also be impossible for us to maintain. As a result, we do not and have no
plans to support parsing JS code in Wget in the near future.
If you have any ideas that would help implement this without needing a full JS
engine, do let us know. We'd be interested in hearing and evaluating new
options.
On 02/29, Zane Staggs wrote:
It seems wget ignores image paths that exist in javascript source like
in a simple path string like "/path/to/my/image.jpg". I realize it's
probably not easy to do parse every js string for an image path but
wondering if there are ways to make it work or plans to implement it.
I got around it for now by creating a dummy hidden img element with
the src so wget could find it in the dom. Thanks.
--
Thanking You,
Darshit Shah
signature.asc
Description: PGP signature
- Re: [Bug-wget] Wget not finding image references in javascript source,
Darshit Shah <=