Skip to content

Namespace Inheritance in SVG rendering #539

@sfisol

Description

@sfisol

Refactor the element creation logic (during command creation or in JS script) to propagate the SVG namespace URI from parent to child instead of relying on a hard-coded tag lookup list.

When an tag is encountered, initiate the SVG namespace and ensure all descendants inherit it automatically, reverting to the HTML namespace only when entering a . This eliminates hydration bugs and ensures all nested elements are correctly instantiated as SVGElement types, making the library future-proof and more performant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions