docs: note what the value of `this` can be on `svelte:element` (#14117)

closes #7575
pull/14147/head
Simon H 2 months ago committed by GitHub
parent 551284ca22
commit 8731f4f780
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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