🐛 BUG: [AST] End position is wrong for self closing tags with attributes #716
Labels
downstream-blocker
This issue is blocking something downstream
feat: ast
Related to the JSON AST output (scope)
What version of
@astrojs/compiler
are you using?1.0.1
What package manager are you using?
pnpm
What operating system are you using?
macOS
Describe the Bug
If a self-closing tag has attributes on it, the end position in the AST is wrong. IT seems like it doesn't consider the attributes and instead return the end position as if it had no attributes.
Example:
Here the end position of the
div
tag isend: { line: 1, column: 7, offset: 6 }
, but that correspond to the end if it had no attributes:Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-jtp7bg?file=src/pages/index.astro&on=stackblitz
The text was updated successfully, but these errors were encountered: