🐛 BUG: Space in ending tag crashes the compiler #1007
Labels
- P2: has workaround
Bug, but has workaround (priority)
feat: tsx
Related to the TSX output (scope)
needs triage
Issue needs to be triaged
What version of
@astrojs/compiler
are you using?2.7.0
What package manager are you using?
pnpm
What operating system are you using?
macOS
Describe the Bug
In HTML, the following code:
is invalid, but is corrected by the browser like this:
In the TSX output, writing the first snippet crashes the compiler.
Link to Minimal Reproducible Example
https://live-astro-compiler.vercel.app/?editor-state=WzMxLDEzOSw4LDAsMTMwLDI0MSw4OSwxMDIsMiwzLDEwMSwxNDUsNzksNzUsMyw0OSwxNiwxOTcsMTkxLDEzOCwyMjgsOTIsODYsNDAsMTIwLDQxLDY5LDQwLDI0NSw0NywxMjAsMTQ0LDIyMSw4NSwxMjMsMjQwLDUwLDc3LDEwMiwzNyw0OCwyMDEsMTMyLDczLDE4MiwyMSwxOTcsMjM5LDIzOCwxMDgsMTUxLDE4MiwyMTgsMjIyLDE0NiwxNTMsMjIzLDE4OCw1NSw0NywyNDksNTQsMTgyLDIzLDE5Myw4OCwxNTAsMjgsMTQ2LDM5LDE0OCw4NywxNDgsMjM2LDU3LDE1NCwxNTMsMTUzLDg2LDg3LDIxMywyMTIsNzYsMTQwLDEwMSwxMzUsMTIyLDE1Nyw1OSwxOTEsMTg1LDEyNiw2NCwzNCwxNTgsOTUsOTQsMTIsMjMxLDI0NywxNjgsMjA1LDQ1LDEzOSwxMjMsMTksNzIsOSwxNTcsMTUzLDIxLDIzMywxMTMsOTgsMTk0LDIwMCwxODMsMjA1LDc0LDI1MSw5LDM2LDIyNyw1MSwxMDMsOTUsMTE4LDE2MiwyOSw4MCw4NiwxNjQsOCwxOTYsMjIwLDE3NywxMzIsMTk5LDg4LDgwLDM0LDIwOCw3NSwyNTMsMTY0LDM1LDIwMiwxMTksMTg2LDY3LDEzMiw0OCw4LDQ0LDY1LDkyLDUsMTg1LDgsMTA3LDYxLDQyLDEyLDIyOCwxOTEsMjA4LDIyMSwyOSw5LDE3MywzMSwxN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