choojs / choojs/nanohtml

Svgs elements not created properly

Open
#151 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
688
Forks
48
PR merge metrics
No merged PRs in 30d

Description

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:
```

```

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

```

I did a [comparison in codesandbox](https://codesandbox.io/s/nanohtml-mangles-svgs-zc9qf) with creating a regular element with `document.createElement` and with nanohtml.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.