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

Spaces in JSX cause bad SVG #107

Closed
edemaine opened this issue Aug 3, 2023 · 0 comments
Closed

Spaces in JSX cause bad SVG #107

edemaine opened this issue Aug 3, 2023 · 0 comments
Labels

Comments

@edemaine
Copy link
Owner

edemaine commented Aug 3, 2023

This example:

<symbol viewBox="0 0 10 10"> {<line/>}</symbol>

generates code like this:

  <symbol id="a" viewBox="0 0 10 10" width="10" height="10" overflow="visible">
    <> </>
    <line/>
  </symbol>

<> is invalid SVG.

Likely a bug when converting VDOMs.

@edemaine edemaine added the bug label Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant