Skip to content

Commit 8731f4f

Browse files
authored
docs: note what the value of this can be on svelte:element (#14117)
closes #7575
1 parent 551284c commit 8731f4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

documentation/docs/05-special-elements/05-svelte-element.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ Svelte tries its best to infer the correct namespace from the element's surround
2929
```svelte
3030
<svelte:element this={tag} xmlns="http://www.w3.org/2000/svg" />
3131
```
32+
33+
`this` needs to be a valid DOM element tag, things like `#text` or `svelte:head` will not work.

0 commit comments

Comments
 (0)