docs: note what the value of `this` can be on `svelte:element`

closes #7575
pull/14117/head
Simon Holthausen 2 years ago
parent 304d88edd0
commit 930463ab83

@ -29,3 +29,5 @@ Svelte tries its best to infer the correct namespace from the element's surround
```svelte
<svelte:element this={tag} xmlns="http://www.w3.org/2000/svg" />
```
`this` needs to be a valid DOM element tag, things like `#text` or `svelte:head` will not work.

Loading…
Cancel
Save