From cf6b64c6c0220068abb2843fea78b125b8767f44 Mon Sep 17 00:00:00 2001 From: Dominic Gannaway Date: Fri, 30 Aug 2024 22:38:43 +0100 Subject: [PATCH] fix: error on incorrect attributes for svelte:body (#13084) * fix: error on spreading attributes for svelte:body * tweak --- .changeset/eleven-icons-sniff.md | 5 +++++ packages/svelte/messages/compile-errors/template.md | 4 ++++ packages/svelte/src/compiler/errors.js | 9 +++++++++ .../compiler/phases/2-analyze/visitors/SvelteBody.js | 10 ++++++++++ .../client/visitors/shared/special_element.js | 1 - 5 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .changeset/eleven-icons-sniff.md diff --git a/.changeset/eleven-icons-sniff.md b/.changeset/eleven-icons-sniff.md new file mode 100644 index 000000000000..fd2b1af9c53f --- /dev/null +++ b/.changeset/eleven-icons-sniff.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: error on incorrect attributes for svelte:body diff --git a/packages/svelte/messages/compile-errors/template.md b/packages/svelte/messages/compile-errors/template.md index f27ed90fb469..a71716b06dae 100644 --- a/packages/svelte/messages/compile-errors/template.md +++ b/packages/svelte/messages/compile-errors/template.md @@ -274,6 +274,10 @@ HTML restricts where certain elements can appear. In case of a violation the bro > A component can have a single top-level `