bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Add --custom-html-attrs option to support custom HTML tags and attribute


From: Lyubomyr Shaydariv
Subject: Add --custom-html-attrs option to support custom HTML tags and attributes
Date: Thu, 23 Jan 2020 16:58:13 +0200

Hi,

Some HTML documents use non-standard attributes that are essentially URLs that 
might be walked through. The attached patch allows to specify new tags and 
attributes to follow.

Example of use:

./wget -nd -r -P . -A jpg \
    --custom-html-attrs=div/big_img,div/med_img \
    http://localhost/index.html

However:
The patch does not include tests or external documentation updates of any kind. 
It does not validate tag/attribute pairs except of simple "/" checking. 
I'm not a C programmer, so I'm fine if the patch is considered poor and 
consequently rejected.
Thanks.

Attachment: 0001-Add-custom-html-attrs-option-to-support-custom-HTML-.patch
Description: Source code patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]