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

fix: handle other elements before the svg element #12516

Merged
merged 4 commits into from
Nov 25, 2024

Conversation

stramel
Copy link
Contributor

@stramel stramel commented Nov 25, 2024

Changes

Fixes #12500

The issue was that we were assuming that the svg element was the first and only root node. To fix this, we now search for the svg element.

Testing

I added a test that fails without this change.

Docs

N/A

@ematipico @natemoo-re

Copy link

changeset-bot bot commented Nov 25, 2024

🦋 Changeset detected

Latest commit: da2a9c7

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Nov 25, 2024
@ematipico ematipico linked an issue Nov 25, 2024 that may be closed by this pull request
1 task
@stramel stramel requested a review from ematipico November 25, 2024 15:09
@ematipico ematipico merged commit cb9322c into withastro:next Nov 25, 2024
12 of 13 checks passed
@stramel stramel deleted the fix-root-node branch November 26, 2024 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[5.0.0-beta.9] SVG component not accepting some SVGs
3 participants