Skip to content

React fails to render SVG children in Edge/IE #5061

@dallonf

Description

@dallonf

Here's a gist that illustrates the issue.

index.html will work as expected (rendering a red circle) in most browsers. If you run the phantom-run.js script in PhantomJS 2.0 (assuming you have the page hosted at localhost:3000), however, it throws this error:

Error: Invariant Violation: findComponentRoot(..., .0): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID ``.

and fails to insert the circle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions