From 930463ab831c470f618434be1efd5af4f7189f9a Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Sat, 2 Nov 2024 12:11:20 +0100 Subject: [PATCH] docs: note what the value of `this` can be on `svelte:element` closes #7575 --- documentation/docs/05-special-elements/05-svelte-element.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation/docs/05-special-elements/05-svelte-element.md b/documentation/docs/05-special-elements/05-svelte-element.md index 17ce06799c80..ef7dc320662f 100644 --- a/documentation/docs/05-special-elements/05-svelte-element.md +++ b/documentation/docs/05-special-elements/05-svelte-element.md @@ -29,3 +29,5 @@ Svelte tries its best to infer the correct namespace from the element's surround ```svelte ``` + +`this` needs to be a valid DOM element tag, things like `#text` or `svelte:head` will not work.