-
Notifications
You must be signed in to change notification settings - Fork 246
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
$.imageReady error in IE 11 + SVG #2625
Comments
Sounds like a good solution. |
Sure can. I'll take it up tonight (day job's in the way today). Should that PR be for the jquery.imageReady repo or this one? |
It's alright, I did it already. |
The other repo is a bit defunct / out of date / unmaintained unfortunately. |
@aut0poietic if you have a moment could you review #2626 and a comment of '+1' if you're happy with it? |
Done! Thanks @oliverfoster, @moloko! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Subject of the issue/enhancement/features
imageReady fails when it encounters an SVG on IE11.
Your environment
Steps to reproduce
This error can only be encountered when a Custom Plugin/Menu/Theme has an inline SVG.
Expected behaviour
imageReady should skip the SVG as it does not have a
currentStyle
property.Actual behaviour
imageReady throws an error on line 44 "Unable to get property 'backgroundImage' of undefined or null reference.'
imageReady never completes for the component, and the course never finishes loading the page.
Proposed Fix
The issue appears to be that SVG's on IE11 do not have a
currentStyle
property. I check to ensureel.currentStyle
is valid should solve the problem, right?The text was updated successfully, but these errors were encountered: