blob: 060415d64498fc69e6002a9d0cee3fff9a6ae399 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
Title: Add support for the "download" attribute
Author: dirwiz
Created: Thu, 07 Mar 2024 20:28:44 +0000
State: open
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](https://en.wikipedia.org/wiki/Data_URI_scheme)
[Mozilla](https://developer.mozilla.org/en-US/docs/web/http/basics_of_http/data_urls#datatextplainbase64sgvsbg8sifdvcmxkiq)
--%--
From: rodarima
Date: Fri, 08 Mar 2024 09:46:16 +0000
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:

- With base64:

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

--%--
From: dirwiz
Date: Fri, 08 Mar 2024 10:38:17 +0000
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!
--%--
From: rodarima
Date: Fri, 08 Mar 2024 11:20:01 +0000
> 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](https://github.com/dillo-browser/dillo/issues/70).
> 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).
|