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

Fragments inside brackets remove body #5483

Closed
1 task
Jelenkee opened this issue Nov 27, 2022 · 5 comments
Closed
1 task

Fragments inside brackets remove body #5483

Jelenkee opened this issue Nov 27, 2022 · 5 comments
Labels
- P3: minor bug An edge case that only affects very specific usage (priority)

Comments

@Jelenkee
Copy link
Contributor

Jelenkee commented Nov 27, 2022

What version of astro are you using?

1.6.11

Are you using an SSR adapter? If so, which one?

no

What package manager are you using?

npm

What operating system are you using?

Linux

Describe the Bug

When a Fragment inside brackets is used in the <head> the <body> tag is gone.

{<Fragment set:html={'<title>Hello world</title>'}/>}

image

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-zuyc2y?file=src%2Flayouts%2FLayout.astro&on=stackblitz

Participation

  • I am willing to submit a pull request for this issue.
@bluwy

This comment was marked as outdated.

@bluwy bluwy added needs response Issue needs response from OP - P3: minor bug An edge case that only affects very specific usage (priority) and removed needs response Issue needs response from OP labels Nov 28, 2022
@bluwy
Copy link
Member

bluwy commented Nov 28, 2022

Actually it seems like that's added by the browser. It's indeed gone when checking the network request.

@JerryWu1234
Copy link
Contributor

Is this problem with the compiler?

@Jelenkee
Copy link
Contributor Author

Actually it seems like that's added by the browser. It's indeed gone when checking the network request.

Sure it is added. But when you have classes on your body, they are gone.

@Princesseuh
Copy link
Member

I'm not sure in which version, but this has been fixed and now works properly on the latest version of Astro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P3: minor bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

No branches or pull requests

4 participants