withastro / compiler

The Astro compiler. Written in Go. Distributed as WASM.
Other
503 stars 59 forks source link

🐛 BUG: Unbalanced quotes in HTML attributes crashes compiler when parsing AST #904

Closed Princesseuh closed 11 months ago

Princesseuh commented 11 months ago

What version of @astrojs/compiler are you using?

^2.2.2

What package manager are you using?

pnpm

What operating system are you using?

macOS

Describe the Bug

The following code: <main id="gotcha /> crashes the compiler due to the missing end quote.

For more details, see the following issue: https://github.com/withastro/language-tools/issues/623

Link to Minimal Reproducible Example

See description