chore: tweak xmlns docs (#12606)

pull/12583/head
Rich Harris 5 months ago committed by GitHub
parent db7652116e
commit e2f17c8a7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -64,7 +64,7 @@ If `this` is the name of a [void element](https://developer.mozilla.org/en-US/do
<svelte:element this={tag} on:click={handler}>Foo</svelte:element>
```
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 tries its best to infer the correct namespace from the element's surroundings, but it's not always possible. You can make it explicit with an `xmlns` attribute:
```svelte
<svelte:element this={tag} xmlns="http://www.w3.org/2000/svg" />

Loading…
Cancel
Save