dillo-browser / dillo

Dillo, a multi-platform graphical web browser
https://dillo-browser.github.io/
GNU General Public License v3.0
582 stars 30 forks source link

Add support for the "download" attribute #93

Open dirwiz opened 8 months ago

dirwiz commented 8 months ago

Happy to see Dillo active again! This is just a wish list item, Data URL support would be pretty neat and very low on resource usage.

For reference: Wikipedia Mozilla

rodarima commented 8 months ago

Do you have an specific example that doesn't work with master?

Dillo already supports the data: URI (since Dillo 0.8.6, from 2006):

image

image

<p>You should see a red dot below</p>
<img alt=""
     src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="
     style="width:10px;height:10px" />

image

dirwiz commented 8 months ago

My fault. I can confirm it does work perfectly!

My testing involved using an SVG for the data part of an IMG. This didn't appear in the browser.

Also I wanted to embed downloads using data url's. HTML5 has a "download" attribute for href where you can specify the filename for download when you click on the link.
Many thanks for the fast response!

rodarima commented 8 months ago

My testing involved using an SVG for the data part of an IMG. This didn't appear in the browser.

Yeah, SVG images are not supported yet, but they are planned.

Also I wanted to embed downloads using data url's. HTML5 has a "download" attribute for href where you can specify the filename for download when you click on the link.

Then I will reuse this issue to request this feature (rather than opening a new one).