Skip to content

Commit 1f27e26

Browse files
authored
fix: improve html semantics from c3 init (#8656)
1 parent 7682675 commit 1f27e26

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.changeset/fluffy-icons-pump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-cloudflare": patch
3+
---
4+
5+
Improves minor HTML semantics of the default index.html included in various templates with Workers Assets

packages/create-cloudflare/templates/hello-world-with-assets/js/public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</head>
88
<body>
99
<h1 id="heading"></h1>
10-
<button id="button">Fetch a random UUID</button>
11-
<div id="random"></div>
10+
<button id="button" type="button">Fetch a random UUID</button>
11+
<output id="random" for="button"></output>
1212
<script>
1313
fetch('/message')
1414
.then((resp) => resp.text())

packages/create-cloudflare/templates/hello-world-with-assets/py/public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</head>
88
<body>
99
<h1 id="heading"></h1>
10-
<button id="button">Fetch a random UUID</button>
11-
<div id="random"></div>
10+
<button id="button" type="button">Fetch a random UUID</button>
11+
<output id="random" for="button"></output>
1212
<script>
1313
fetch('/message')
1414
.then((resp) => resp.text())

packages/create-cloudflare/templates/hello-world-with-assets/ts/public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</head>
88
<body>
99
<h1 id="heading"></h1>
10-
<button id="button">Fetch a random UUID</button>
11-
<div id="random"></div>
10+
<button id="button" type="button">Fetch a random UUID</button>
11+
<output id="random" for="button"></output>
1212
<script>
1313
fetch('/message')
1414
.then((resp) => resp.text())

0 commit comments

Comments
 (0)