From c8f00274e263c5df81859a21844d11b9bb2219c1 Mon Sep 17 00:00:00 2001 From: Gurpreet Atwal Date: Mon, 25 Aug 2025 14:34:19 -0700 Subject: [PATCH 1/2] chore(elements.d.ts): add "Accept-CH" as valid value for `http-equiv` It seems like this is a valid value and it has been working for me, however I did find conflicting information on whether it is supported or not. Supporting Evidence: - https://github.com/WICG/client-hints-infrastructure?tab=readme-ov-file#opt-in-mechanism - https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Client_hints#overview - https://developer.chrome.com/docs/privacy-security/user-agent-client-hints#introducing_the_new_user-agent_client_hints - https://github.com/httpwg/http-extensions/issues/189 Conflicting Evidence: - https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-http-equiv --- packages/svelte/elements.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/svelte/elements.d.ts b/packages/svelte/elements.d.ts index f63a31a96bd3..e604505d967b 100644 --- a/packages/svelte/elements.d.ts +++ b/packages/svelte/elements.d.ts @@ -1268,6 +1268,7 @@ export interface HTMLMetaAttributes extends HTMLAttributes { charset?: string | undefined | null; content?: string | undefined | null; 'http-equiv'?: + | 'accept-ch' | 'content-security-policy' | 'content-type' | 'default-style' From 0f186087472f724f55902bf3d82a705f10ac7f27 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 25 Aug 2025 18:05:45 -0400 Subject: [PATCH 2/2] changeset --- .changeset/thick-books-fail.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/thick-books-fail.md diff --git a/.changeset/thick-books-fail.md b/.changeset/thick-books-fail.md new file mode 100644 index 000000000000..42dba3c86e7f --- /dev/null +++ b/.changeset/thick-books-fail.md @@ -0,0 +1,5 @@ +--- +"svelte": patch +--- + +fix: add "Accept-CH" as valid value for `http-equiv`