-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Describe the bug
When setting a dynamic class on an SVG Element inside inside like this:
<script>
let name = 'world';
</script>
<svg>
<a href="/" aria-label="...">
<rect class={name} />
</a>
</svg>
I get this error on Chrome:
Cannot set property className of #<SVGElement> which has only a getter
Reproduction
Logs
Cannot set property className of #<SVGElement> which has only a getterSystem Info
Tested in the REPL with:
System:
OS: macOS 15.0.1
Browsers:
Brave Browser: 131.1.73.101
Chrome: 131.0.6778.140
npmPackages:
svelte: 5.14.4 => 5.14.4
Severity
blocking an upgrade
Metadata
Metadata
Assignees
Labels
No labels