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
