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

Generating <image /> elements inside an <svg> ends up with <img /> outside #13081

Open
1 task
n-gt opened this issue Jan 27, 2025 · 0 comments
Open
1 task
Labels
needs triage Issue needs to be triaged

Comments

@n-gt
Copy link

n-gt commented Jan 27, 2025

Astro Info

Astro                    v5.1.8
Node                     v20.15.1
System                   Linux (x64)
Package Manager          npm
Output                   server
Adapter                  @astrojs/cloudflare
Integrations             astro-icon
                         @astrojs/tailwind
                         @astrojs/alpinejs

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

When I try to add elements to an SVG programmatically within an <svg></svg>, the resulting html ends up with <img> tags outside of it.

What's the expected result?

<svg>
  <image 1.. />
  <image 2.. />
  ....
</svg>

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-hx1emndl?file=src%2Fpages%2Findex.astro

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant