From bc78391bdc9b54a97817fa167d003c26b249d15d Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:34:27 +0200 Subject: [PATCH] docs: mention xmlns attribute for `` (#12598) closes #11993 --- .../docs/02-template-syntax/09-special-elements.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/documentation/docs/02-template-syntax/09-special-elements.md b/documentation/docs/02-template-syntax/09-special-elements.md index a22b63ac48..3baa652185 100644 --- a/documentation/docs/02-template-syntax/09-special-elements.md +++ b/documentation/docs/02-template-syntax/09-special-elements.md @@ -64,6 +64,12 @@ If `this` is the name of a [void element](https://developer.mozilla.org/en-US/do Foo ``` +Svelte tries its best to infer the correct namespace from its surroundings, but that's not always possible to analyze statically. You can give a hint by adding a `xmlns` attribute: + +```svelte + +``` + ## `` ```svelte