-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
@html directive doesn't work as direct child of svg #5764
Comments
Very interesting! |
I'd say that SVG XML !== HTML maybe? Edit: Hmm .. your working examples actually debunk that theory - feel free to ignore the comment above! |
A side-effect of the bug is that svg case-sensitive attributes are all lowercased when inserted into the DOM. Results in incorrect behavior Results in desired behavior |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, just stumbled on this issue (actually on the repl page). Thank you a lot for the |
I would suggest extending |
Describe the bug
If I have a component like this
and try to render it like this
The circle isn't rendered.
To Reproduce
https://svelte.dev/repl/1a2ea34b898040e7bd52928331f6437b?version=3.31.0
Expected behavior
The circle should be rendered
Severity
Minor annoyance, there are 2 workarounds (see Additional context)
Additional context
If I wrap the html directive in a
<g>
tag like this:or use it without a component
it works fine
The text was updated successfully, but these errors were encountered: