Skip to content

Issue with @html and svg #6205

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

Closed
iceisfun opened this issue Apr 17, 2021 · 4 comments
Closed

Issue with @html and svg #6205

iceisfun opened this issue Apr 17, 2021 · 4 comments

Comments

@iceisfun
Copy link

Describe the bug
I'm using @html inside a svg tag, when the svg tag has other children OR something like a {#if false}{/if} the path does not render.

Inspect > Edit as html > Change anything like add a space > Appears

Logs
Please include browser console and server logs around the time this bug occurred.

To Reproduce
https://svelte.dev/repl/4bbca1bbcbb740e5b0ed48fa003474fc?version=3.37.0

Expected behavior
all 4 cases show the svg path

Severity
confusing rendering error, work around without @html usage

@j3rem1e
Copy link

j3rem1e commented Apr 17, 2021

Same issue as #5764
The workaround works too : wrap the {@html }with a <g>

@iceisfun
Copy link
Author

I saw that Attribute style thing when I was investigating the difference, thanks for pointing out a solution.

this does not seem to be related to the lower case issue, as I pointed out inspect > edit as html > add space > works

For now wrapping in seems to work

@Conduitry Conduitry changed the title Strange issue with @html Issue with @html and svg May 24, 2021
@stale
Copy link

stale bot commented Nov 20, 2021

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.

@stale stale bot added the stale-bot label Nov 20, 2021
@stale
Copy link

stale bot commented Dec 4, 2021

This issue has been closed as it was previously marked as stale and saw no subsequent activity.

@stale stale bot closed this as completed Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants