-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Top-level Anchor tags break out of the SVG namespace #2048
Copy link
Copy link
Closed
Labels
wontfixThis will not be worked onThis will not be worked on
Description
Describe the bug
On this example the red square doesn't render
https://playground.solidjs.com/anonymous/81577cd9-1162-4cf9-b312-9b8197bae11b
The underlying issue is that xmlns is lost in at least two situations:
- on component change https://playground.solidjs.com/anonymous/133e8b12-defc-4a89-9c42-9cc401b3b602
- when reactivity takes over and for example a Show toggles
I believe the only way to fix this is to create a context with the value of the xmlns and use it to create any children. This is not about SVG, this will happen with any XML element/future element that needs the xmlns to work correctly.
Your Example Website or App
https://playground.solidjs.com/anonymous/81577cd9-1162-4cf9-b312-9b8197bae11b
Steps to Reproduce the Bug or Issue
Expected behavior
Screenshots or Videos
Platform
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
wontfixThis will not be worked onThis will not be worked on