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

Svgs elements not created properly #151

Open
isabellachen opened this issue Aug 9, 2019 · 2 comments
Open

Svgs elements not created properly #151

isabellachen opened this issue Aug 9, 2019 · 2 comments

Comments

@isabellachen
Copy link

If an svg element has multiple path tags inside, only the first path is added to the nano element.

If I have an svg element like this:

<svg>
  <title></title>
  <path></path>
  <path></path>
</svg>

When the element is rendered in the dom, I get this:

<svg>
  <title></title>
  <path></path>
</svg>
<path></path>

I did a comparison in codesandbox with creating a regular element with document.createElement and with nanohtml.

@goto-bus-stop
Copy link
Member

Thanks for the report! This is a hyperx bug, probably the same as choojs/hyperx#34 or choojs/hyperx#41. Hard to say how hard the fix would be.

@mreinstein
Copy link

mreinstein commented Feb 6, 2021

After some investigation, the issue that is causing this problem is choojs/hyperx#41
I've added details in that issue about exactly what is happening, and a possible solution we might apply.

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

No branches or pull requests

3 participants