-
Notifications
You must be signed in to change notification settings - Fork 55
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
Links within template Elements cause wrong HTML parsing/output #971
Comments
@Princesseuh I saw that you moved this issue to the compiler project. I threw together a quick test with Edit: The transformed output of the compiler ( |
Thanks for investigating @diesieben07! |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
n/a
Describe the Bug
Astro fails to parse
a
elements withintemplate
elements correctly in certain situations.If the content of the
a
element is an expression, Astro emits thea
element again after the template element.The following is not handled correctly:
The emitted HTML is equivalent to the following:
This problem does not occur if the
a
Element only contains plain text (i.e. not an expression).What's the expected result?
Astro should parse/emit
a
elements withintemplate
elements correctly.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-5amjgj?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: