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

CSS not properly escaped in custom elements #872

Closed
Rich-Harris opened this issue Sep 27, 2017 · 0 comments · Fixed by #873
Closed

CSS not properly escaped in custom elements #872

Rich-Harris opened this issue Sep 27, 2017 · 0 comments · Fixed by #873
Labels

Comments

@Rich-Harris
Copy link
Member

This code results in an à character normally:

<span class='icon'></span>

<style>
  .icon::before {
    content: '\e0'
  }
</style>

When compiled to a custom element, though, it comes out as e0 because the \ character isn't escaped.

Rich-Harris added a commit that referenced this issue Oct 4, 2017
escape backslashes in CSS for custom elements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant