Skip to content

className is readonly for svg DOM Elements #104

@agubler

Description

@agubler

Bug

When applying classes to DOM nodes vdom attempts to simply set className on a DOM element if it isn't merging and there were no classes applied on the previous render. However className is read only for svg elements and throws an error like:

Cannot assign to read only property 'className' of object '#<SVGSVGElement>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnextIssue/Pull Request for the next major version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions