You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Svelte 5.2.0+ removes xlink:href and href in <use> tag of SVG when it includes imported variable. There are probably other cases than just this svg issue.
Example:
<script>
import { sprites } from './_generatedVariables.js'
let name = 'world';
</script>
<h1>Hello {name}!
<svg width="13" height="14" aria-hidden="true">
<use xlink:href="{sprites['svgsprite2']}#done"></use>
</svg>
</h1>
Describe the bug
Svelte 5.2.0+ removes
xlink:href
andhref
in<use>
tag of SVG when it includes imported variable. There are probably other cases than just this svg issue.Example:
Svelte generates component without
xlink:href
.Reproduction
https://svelte.dev/playground/70b9436a1d01428da9d1561a272e60c9?version=5.2.3
Logs
No response
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: