-
Notifications
You must be signed in to change notification settings - Fork 61
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
Missing <body> tag if astro finds an unrecognized head tag #982
Comments
Put this in If there is any problem the build should fail instead of output files without head.
|
The compiled output seems to be incorrect where the body is not rendered: // ...
return $$render`<html lang="en">
<head>
<title>document</title>
<!-- Delete next line and body will be red -->
${$$renderHead($$result)}</head><lol href="lol"></lol>
${$$renderSlot($$result,$$slots["default"])}
</html>`;
}, '<stdin>', undefined);
// ... |
@bluwy is that the same cause of bug I found? |
Bug caused by astro 4.2.2 it works in 4.2.1. |
It should get fixed by #939 |
@MoustaphaDev the bug I reported should be fixed by that too? The PR is 2 months old is something blocking merge? |
Sorry for the late response, I haven't checked but the PR fixes several issues like that, so hopefully. I'll check if it does early next week and let you know! |
@MoustaphaDev I would like upgrade to latest version if you can check if this fixes the issue. |
Hey @cdtut, I didn't get to work on the PR unfortunately, and probably won't be able to next week too. |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Chrome
Describe the Bug
Input:
Output
Notice the missing
</head>
and<body>
elements.Minimal Repro:
https://stackblitz.com/edit/github-zkwgaq-g5un8g?file=src%2Fpages%2Findex.astro&file=src%2Flayouts%2FLayout.astro&on=stackblitz
What's the expected result?
valid html. Astro should omit tags it doesn't recogdnize / understand
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-zkwgaq-g5un8g?file=src%2Fpages%2Findex.astro&file=src%2Flayouts%2FLayout.astro&on=stackblitz
Participation
The text was updated successfully, but these errors were encountered: