Skip to content

tsx-dom should use document.createElementNS if the closest svg has an xmlns #25

@danielhjacobs

Description

@danielhjacobs

According to the definition of closest from https://developer.mozilla.org/en-US/docs/Web/API/Element/closest

See here:

if (attrs?.xmlns) return document.createElementNS(attrs.xmlns as string, tag, options) as SVGElement;

I already mentioned this in #22 (comment), but it's really a separate issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions