From c065b3fe71a47fc82bbf09eca0e6a739b6e29606 Mon Sep 17 00:00:00 2001 From: Gerrit Birkeland Date: Sat, 4 May 2024 20:27:23 -0600 Subject: [PATCH] Fix `charset` capitalization Resolves #2568 --- CHANGELOG.md | 1 + src/lib/output/themes/default/layouts/default.tsx | 2 +- src/lib/utils/jsx.elements.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de94c2ca7..2522056ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,7 @@ - `@license` and `@import` comments will be ignored at the top of files, #2552. - Fixed issue in documentation validation where constructor signatures where improperly considered not documented, #2553. - Fixed issue where search results could not be navigated while Windows Narrator was on, #2563. +- `charset` is now correctly cased in `` tag generated by the default theme, #2568. - `--hostedBaseUrl` will now implicitly add a trailing slash to the generated URL. ### Thanks! diff --git a/src/lib/output/themes/default/layouts/default.tsx b/src/lib/output/themes/default/layouts/default.tsx index a2fd109cc..90246e264 100644 --- a/src/lib/output/themes/default/layouts/default.tsx +++ b/src/lib/output/themes/default/layouts/default.tsx @@ -12,7 +12,7 @@ export const defaultLayout = ( ) => ( - + {context.hook("head.begin")} diff --git a/src/lib/utils/jsx.elements.ts b/src/lib/utils/jsx.elements.ts index 51e599f0b..7893b1bc2 100644 --- a/src/lib/utils/jsx.elements.ts +++ b/src/lib/utils/jsx.elements.ts @@ -592,7 +592,7 @@ export interface JsxMetaElementProps extends JsxHtmlGlobalProps { | "default-style" | "x-ua-compatible" | "refresh"; - charSet?: "utf-8"; + charset?: "utf-8"; content?: string; name?: string; }