-
Notifications
You must be signed in to change notification settings - Fork 15
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
IE demos don't work in IE8 standards mode #2
Comments
I'll take a look.
|
Hmm... there doesn't seem to be any error thrown, it looks like the CSS behavior isn't being applied correctly. It does work if you change IE8 to compat mode or if its running in IE7 mode, so I would assume it has something to do with IE trying to be "correct" and ignoring the behavior added. Oh, wait, now that I think about it I'm pretty sure IE8 is when they started using |
After some research, I figured out the problem. IE8+ (only standard mode) no longer supports expressions, which is how the CSS behaviors are calling to the polyfill: behavior: expression(document.placeholderPolyfill(this)); The only solution to this would be to switch to using an .htc file, which is something I really didn't/don't want to do (I would really prefer to limit the requirements to a single file). I might come up with a cleaver solution, but in the mean time, there are a couple of options for you.
<public:component>
<script type="text/javascript">
window.document.placeholderPolyfill(element);
</script>
</public:component>
If you want to go with the .htc solution that uses a second file, I can write you a custom build, shouldn't take too long. |
Thanks! Sorry for the long delay, I just managed to get back to this and used that tiny .htc file with ie-behavior.js. It works - http://www.healthyachievements.org/staging/index.html Now IE8 compat mode was broken though, so I just added the IE=edge meta tag to disable it. |
Alright, I'm going to leave this open until I decide how I want to go about dealing with this on a more permanent basis. |
The demos seem to work fine for me in IE8 - IE8 standards mode running on XP. |
I have this issue in IE11 - IE8 mode but I will just use the simple.js as that works. |
No description provided.
The text was updated successfully, but these errors were encountered: