Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

domProps innerHTML does not work with svgs in IE 11 #8459

Closed
jnields opened this issue Jul 5, 2018 · 1 comment
Closed

domProps innerHTML does not work with svgs in IE 11 #8459

jnields opened this issue Jul 5, 2018 · 1 comment

Comments

@jnields
Copy link

jnields commented Jul 5, 2018

Version

2.5.16

Reproduction link

https://codepen.io/anon/pen/vrqYEG

Steps to reproduce

Set domProps: { innerHTML } of svg tag and it will not work in IE

What is expected?

SVG should contain provided HTML

What is actually happening?

SVG contains no HTML


React had the same issue a while ago
facebook/react#10013

@posva
Copy link
Member

posva commented Jul 5, 2018

innerhtml is not supposed to work with svg(per spec). See #5310 (comment)
But apparently there is a shim that would allow you to set it when I did a quick search

@posva posva closed this as completed Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants