Last post Sep 05, 2017 11:14 AM by PatriceSc
Aug 23, 2017 05:00 PM|joegreen2005|LINK
We have an MVC application that uses bootstrap v3.3.7, bootstrap.less v 3.3.7 Bootstrap.v3.Datetimepicker.css v 4.17.45 jQuery v1.12.4, jQuery.Validation v 1.16.0, Respond v 1.4.2, WebGrease v1.6.0 and Antlr v184.108.40.206. When this application is viewed in
IE 11, the emulation mode changes to IE 7 and at times IE5. Is there anything in these libraries that would change the emulation mode?
Is there a way to set emulation mode for IE from code rather than changing it manually using F12?
Aug 23, 2017 05:11 PM|ryanbesko|LINK
I believe this in your <head> tag will do the trick:
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
Aug 24, 2017 12:07 AM|hussainpatel|LINK
The answer to your questions is here ...
Aug 24, 2017 05:05 AM|Eric Du|LINK
According to your description, as far as I know, I suggest you add the following code to realize the best compatibility mode:
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
Also here is a official document about how to achieve this, please check:
Emulate browsers, screen sizes, and GPS locations:
Aug 24, 2017 06:00 PM|markfitzme|LINK
No. It may change depending on other code in the application, but it should definitely stay on Edge mode, especially since these libraries don't support those early versions of IE.
Aug 25, 2017 10:50 AM|joegreen2005|LINK
Adding a meta tag in the head section seems to have solved the problem. My next question is which one of the libraries was causing the emulation to change to IE 7 or is it IE 11 itself?
Why was the emulation changing?
Aug 25, 2017 03:08 PM|bruce (sqlwork.com)|LINK
Sep 05, 2017 11:14 AM|PatriceSc|LINK
Usually this is because IE uses compat mode for intranet sites. Or try F12 Emulation,. IE mention what caused a particular mode to be selected.