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
Overriding Compatibility View in IE9 #6163
Comments
We happen to employ compatibility mode in our intranet for legacy web applications, so the IE9 installations run it by default. X-UA-Compatible meta tag should override compatibility mode for IE9, but it cannot because you have IE conditional statements preceding said meta tag, rendering the meta tag ineffective. All you have to do is load up piwik on an IE9 browser and run compatibility mode to see what I mean. Our intranet policy is IE9+ only, so I had to open up Morpheus and remove the IE conditional statements completely in order for the X-UA-Compatible meta tag to function. I hope that makes sense |
@drammons do you maybe have possibility to submit a pull request fixing the error in our code so it works well on IE8 and IE9 in both modes? |
Before I do, I'd like to do a little more research. It looks like you were using the HTML5 Boilerplate code. Is that so? |
Because I had the same problem (business intranet) I worked on this issue and moved the conditional tag to the body-section. So we never have IE conditional statements precending the X-UA-Compatible meta tag and it works in IE9 in intranet. |
I considered doing that, but I don't think it's valid HTML at that point. meta tags are supposed to go in the |
I don't get what you wanted to say, but I think a html-Tag inside IE conditional statements is same valid or invalid as a body-Tag inside IE conditional statements. ;-) |
@Fensterbank submitted a Pull request in #6687 @drammons maybe you have a chance to test it and confirm it fixes the issue for you? (I haven't tested it yet) |
Hi guys. Sorry, life got crazy. As for the truncated comment above, I don't have an explanation for that, other than trying to make a github comment via mobile. @Fensterbank I misread your original comment, and I think it's an excellent fix. Well done. |
We recently did a major upgrade, and I see that you dropped support for IE8 or less. However, The meta tag for overriding compatibility mode in IE9+ only works if it is in front of IE conditional statements. As such, IE9 ignores the meta tags you added altogether, and this won't work:
See: http://tesmond.blogspot.it/2011/10/ie9-intranet-compatibility-mode-in.html
The text was updated successfully, but these errors were encountered: