-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
namespaceURI seems to go wrong when I use @html in #each in SVG #7002
Comments
To fix this, at runtime, if the parent element of the |
Is there any way to avoid this now? |
Unfortunately, so far I've only come up with your way... |
Now we can close it because this is fixed by #7464 |
This should be fixed in 3.48.0 - https://svelte.dev/repl/2e6d05451d4e40159bae0570a422bb80?version=3.48.0 |
Describe the bug
It seems that namespaceURI is entered incorrectly when putting pattern in SVG .
I thought that @html doesn't support svg, but the problem only occurs inside "each".
The first rectangle using each has no pattern applied,
The second rectangle is the pattern applied.
If you check with the inspector in the browser, the pattern entered into each enters the namespaceURI as "http://www.w3.org/1999/xhtml", but you can see that the pattern of the second square is entered as "http://www.w3.org/2000/svg".
How can I make sure that the correct namespaceURI is also included in each?
Reproduction
https://svelte.dev/repl/2e6d05451d4e40159bae0570a422bb80?version=3.44.2
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: