Skip to content

Svgs elements not created properly #151

@isabellachen

Description

@isabellachen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions