Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG element in {#if ...} block rendered with wrong namespaceURI #14814

Open
bdpartridge opened this issue Dec 23, 2024 · 0 comments · May be fixed by #14817
Open

SVG element in {#if ...} block rendered with wrong namespaceURI #14814

bdpartridge opened this issue Dec 23, 2024 · 0 comments · May be fixed by #14817
Assignees
Labels

Comments

@bdpartridge
Copy link

Describe the bug

When an SVG element is rendered in an {#if ...} block, it's created in the wrong namespace, which can break certain behaviors. See the link below for a reproduction of the issue. The second icon is rendered with a <title> to give the SVG image an accessible name, but it doesn't work because it has the wrong namespaceURI.

Reproduction

https://svelte.dev/playground/hello-world?version=5.15.0#H4sIAAAAAAAAE3VSTY_TMBD9K6OBA0iNY7f53rQI9oCQ4ITEBXMIrttY6zpR4ra7W-W_IzspJcAqyuS9-XozmlzQVAeJBX799hHOytYgGrNVVjWm0mCV1RIXuFNa9lh8v6B9al22c-DiWvu-bUl_kto638-ql__zi8ZYaWyPBZa96FRrN9xwqw5t01n4JBoDu645AEcSOjZVcrzjpgxvFab0ueHmivyQa473qhNaTkvUUjwcqu6Bo8_EBVr5aLGw3VEOixf2-EN2vsg88MImWlq4-GEGWMPrtmva_s3bf6bvT3s4KXn-0DyuOVKgwBJgCUeoOlUFtdpupVmPjeAdmKPWUABHNznHwUtdXqnduPfgKLelJ5tJvgxH6lNDtfNJZVvZGrZrjl8yoPcrEmc5OPkryvoRZeMTTCyYUOBQ9nygwGIRrEiWAA3SYEVYFKRB2o8AUveCI-DICJzvmeOmDN0Qm7_GYYywKIGYrLLsc0LybAk5ieMlRCRb5ZCSiOYiICyPJxOz5YRSmgL1-HfYRYGCC-klifIEvBXXJBf3X1-rIxKzLPBW3HpcZVzzlKZzcXYTJ5Sy2WJl2J_206Ht03QDd_LLeKiz2tq6AJa0j3ejp5ZqX9uZa6e0LkAcu04aKxrddD4w-PZT1_kf_WP4BYC8LjLJAwAA

Logs

No response

System Info

Svelte 5.15.0

Severity

blocking an upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants