Skip to content

Commit 265991c

Browse files
Add <title> to empty wasm template index.html (#44334)
# Add <title> to empty wasm template index.html Add <title> to empty wasm template index.html ## Description The new Blazor WebAssembly "empty" project template lacks a `<title>`, but (1) everyone wants a title, and (2) the `<title>` element is required by the HTML spec - we can't omit it without the document being invalid. This PR adds it. Fixes #44335 ## Customer Impact Without fixing this, newly-created projects don't conform to the HTML spec by default. And it's just strange. ## Regression? - [ ] Yes - [x] No - the empty wasm template is new in 7.0 [If yes, specify the version the behavior has regressed from] ## Risk - [ ] High - [ ] Medium - [x] Low It's just adding a `<title>` element to a plain-text HTML file, equivalently to how it already appears in the non-empty template. ## Verification - [x] Manual (required) - [ ] Automated ## Packaging changes reviewed? - [ ] Yes - [ ] No - [x] N/A
1 parent 2b8523d commit 265991c

File tree

1 file changed

+1
-0
lines changed
  • src/ProjectTemplates/Web.ProjectTemplates/content/EmptyComponentsWebAssembly-CSharp/Client/wwwroot

1 file changed

+1
-0
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/EmptyComponentsWebAssembly-CSharp/Client/wwwroot/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
<head>
55
<meta charset="utf-8" />
6+
<title>EmptyComponentsWebAssembly-CSharp</title>
67
<base href="/" />
78
<link href="css/app.css" rel="stylesheet" />
89
<!--#if PWA -->

0 commit comments

Comments
 (0)