You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro v5.1.5
Node v22.13.0
System Windows (x64)
Package Manager npm
Output static
Integrations none
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Title tag is incorrectly rendered when containing JSX-like expression followed by text without whitespace separating them.
All of the text after closing curly bracket and the rest of the head tags are appended after the head is closed, and the body is missing entirely.
If you have a whitespace between closing curly bracket and other text (<title>BEFORE TEXT{pageTitle ? pageTitle : ""} AFTER TEXT</title>), everything works as expected.
Stackblitz link has couple of more examples, which might not be valid html, but nevertheless perform unexpectedly.
What's the expected result?
Title tag content is rendered similarly to other tags.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Title tag is incorrectly rendered when containing JSX-like expression followed by text without whitespace separating them.
All of the text after closing curly bracket and the rest of the
head
tags are appended after thehead
is closed, and thebody
is missing entirely.Example:
Gets rendered into
If you have a whitespace between closing curly bracket and other text (
<title>BEFORE TEXT{pageTitle ? pageTitle : ""} AFTER TEXT</title>
), everything works as expected.Stackblitz link has couple of more examples, which might not be valid html, but nevertheless perform unexpectedly.
What's the expected result?
Title tag content is rendered similarly to other tags.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-kemzyhhk
Participation
The text was updated successfully, but these errors were encountered: