Skip to content

Commit e293d6c

Browse files
authored
Fix and tweak module worker example
Adds missing <canvas> element, and wraps the <label>s with <p>s. Closes whatwg#2908.
1 parent 6f2e804 commit e293d6c

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

demos/workers/modules/page.html

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,30 @@
22
<meta charset="utf-8">
33
<title>Worker example: image decoding</title>
44

5-
<label>
6-
Type an image URL to decode
7-
<input type="url" id="image-url" list="image-list">
8-
<datalist id="image-list">
9-
<option value="https://html.spec.whatwg.org/images/drawImage.png">
10-
<option value="https://html.spec.whatwg.org/images/robots.jpeg">
11-
<option value="https://html.spec.whatwg.org/images/arcTo2.png">
12-
</datalist>
13-
</label>
5+
<p>
6+
<label>
7+
Type an image URL to decode
8+
<input type="url" id="image-url" list="image-list">
9+
<datalist id="image-list">
10+
<option value="https://html.spec.whatwg.org/images/drawImage.png">
11+
<option value="https://html.spec.whatwg.org/images/robots.jpeg">
12+
<option value="https://html.spec.whatwg.org/images/arcTo2.png">
13+
</datalist>
14+
</label>
15+
</p>
1416

15-
<label>
16-
Choose a filter to apply
17-
<select id="filter">
18-
<option value="none">none</option>
19-
<option value="grayscale">grayscale</option>
20-
<option value="brighten">brighten by 20%</option>
21-
</select>
22-
</label>
17+
<p>
18+
<label>
19+
Choose a filter to apply
20+
<select id="filter">
21+
<option value="none">none</option>
22+
<option value="grayscale">grayscale</option>
23+
<option value="brighten">brighten by 20%</option>
24+
</select>
25+
</label>
26+
</p>
27+
28+
<canvas id="output"></canvas>
2329

2430
<script type="module">
2531
const worker = new Worker("worker.js", { type: "module" });

source

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120579,6 +120579,7 @@ INSERT INTERFACES HERE
120579120579
Henrik Lied,
120580120580
Henry Mason,
120581120581
Henry Story,
120582+
Hermann Donfack Zeufack,
120582120583
Hugh Bellamy,
120583120584
Hugh Guiney,
120584120585
Hugh Winkler,

0 commit comments

Comments
 (0)