Thanks for reporting.

I opened an Wget2 issue at https://gitlab.com/gnuwget/wget2/-/issues/613.

Regards, Tim

On 03.09.22 01:52, wget--- via Primary discussion list for GNU Wget wrote:
I tried searching the mailing list, bug tracker and source code for srcdoc 
support,
seems it is missing. If I missed something, please don’t hesitate to point it 
here.

I’m using GNU Wget 1.21.3, trying to archive some websites for posterity.
The only missing feature for my case is this one.

Example, suppose the html file athttps://example.com/subfolder/about.html  
contains:
```
<!DOCTYPE html>
<iframe srcdoc="
<img src=relative.jpg>
&lt;img src=&quot;/absolute.jpg&quot;&gt;
"></iframe>
```

The expected is that it selects for download the following:
https://example.com/subfolder/relative.jpg
https://example.com/absolute.jpg

documentation:
https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-srcdoc

Browser support:
https://caniuse.com/?search=srcdoc


edge-case (or absence-of):
Seems that due some past oversight the iframe inherits the parents base url:
https://github.com/whatwg/html/issues/8105
Due to backwards compatibility this is not expected to change much

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to