bug-wget
[Top][All Lists]
Advanced

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

iframe srcdoc resources recursive mode


From: wget
Subject: iframe srcdoc resources recursive mode
Date: Sat, 03 Sep 2022 00:52:18 +0100

Hey there,

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 at https://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


Thanks to the maintainers



reply via email to

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