Skip to content
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

Astro doesn't render content if there is escaped number in an attribute #778

Open
1 task
Machy8 opened this issue Apr 17, 2023 · 2 comments
Open
1 task
Labels
- P3: minor bug An edge case that only affects very specific usage (priority)

Comments

@Machy8
Copy link

Machy8 commented Apr 17, 2023

What version of astro are you using?

2.31

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

yarn / npm

What operating system are you using?

Linux / Stackblitz

What browser are you using?

Not caused by browser.

Describe the Bug

I have been debugging stylify/packages#233 for Stylify submitted by @MilesPernicious and I got to the result that if there is any escaped number (letters seem to be ok) in an attribute, the rendering "hangs" and no output is shown.

<div class="\2">Doesn't render</q>
<div id="\3">Nope</q>

<div class="2">This does</div>
<div class="\\2">This does too</div>
<div class="\x">Letters are ok</div>

Link to Minimal Reproducible Example

https://stackblitz.com/edit/astro-yahlqw?file=src%2Fpages%2Findex.astro

Participation

  • I am willing to submit a pull request for this issue.
@MoustaphaDev
Copy link
Member

This should probably get escaped by the compiler.

Moving this to the compiler repo

@MoustaphaDev MoustaphaDev transferred this issue from withastro/astro Apr 21, 2023
@MoustaphaDev MoustaphaDev added the - P3: minor bug An edge case that only affects very specific usage (priority) label Apr 21, 2023
@MoustaphaDev
Copy link
Member

Related #914

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P3: minor bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

No branches or pull requests

2 participants