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

🐛 Playground crashes on <div dangerouslySetInnerHtml={{ __html: '…' }} / #3250

Closed
1 task done
wojtekmaj opened this issue Jun 21, 2024 · 1 comment · Fixed by biomejs/website#647
Closed
1 task done

Comments

@wojtekmaj
Copy link

Environment information

n/a

What happened?

  1. Open https://biomejs.dev/playground/?code=PABkAGkAdgAgAGQAYQBuAGcAZQByAG8AdQBzAGwAeQBTAGUAdABJAG4AbgBlAHIASAB0AG0AbAA9AHsAewAgAF8AXwBoAHQAbQBsADoAIAAnACYgJwAgAH0AfQAgAC8A

OR

  1. Open https://biomejs.dev/playground/
  2. Enter <div dangerouslySetInnerHtml={{ __html: '…' }} />
  3. Erase 1 character

Expected result

It should not crash

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@Sec-ant
Copy link
Member

Sec-ant commented Jun 21, 2024

I think this is the same problem reported in #1385. In your example code, has multiple code points. This is probably the reason why it crashes.

Edit:
No, I was wrong, doesn't have multiple codepoints. But this is still encoding related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants