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
Apparent bug on IE11 #2
Comments
Hi @mkautzmann - great bug report, thank you for the helpful screen captures and context. One additional detail that would help me diagnose would be the value of Cheers! |
|
@mkautzmann Since most browsers are not affected by this, I think the best solution would be to wrap the property assignment in a try/catch. It won't be the best for performance, but it will mean |
@developit Looks fine. I can do that and submit a PR if you find that OK. It may stay around as long as IE11 is relevant. Edge does not have the issue. |
That would be awesome, I'll merge and release right away if you have the time. |
Fix released in |
Hello.
Apparently there is a bug when rendering svgs on IE11. Anyone else can report this?
From my tests I found out that in the
defineProperty
loop IE11 seems to reject theviewport
property.It appears to be the only property it rejects raising an error. The screenshot below show a hack that just skips that property and then everything works fine including all my preact components and stuff.
I couldn't reproduce this on MS Edge or on any other modern browsers, I didn't test on IE versions prior to 11 though.
The screenshot below shows the IE11 throwing the error in my code:
For now I'm using my hack since it does affect my use case. I don't know exactly if
viewport
is needed here for other people or how else we should tackle this.The text was updated successfully, but these errors were encountered: