Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the "download" attribute #93

Open
dirwiz opened this issue Mar 7, 2024 · 3 comments
Open

Add support for the "download" attribute #93

dirwiz opened this issue Mar 7, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@dirwiz
Copy link

dirwiz commented Mar 7, 2024

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 rodarima added the enhancement New feature or request label Mar 7, 2024
@rodarima
Copy link
Member

rodarima commented Mar 8, 2024

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):

  • Simple HTML:

image

  • With base64:

image

  • Inline in a HTML document:
<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
Copy link
Author

dirwiz commented Mar 8, 2024

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
Copy link
Member

rodarima commented Mar 8, 2024

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).

@rodarima rodarima changed the title Support for data URI scheme Add support for the "download" attribute Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants