I am using compatibility mode in IE11. I am using below code to set compatibility mode:
<meta http-equiv="x-ua-compatible" content="IE=8">
Now when I run my webpage some of functionality is breaking. After setting User Agent String to 'Internet Explorer 8' everything works fine. This means user agent string is not setting up correctly in compatible mode.
Now question is how I can force my code to use IE8 user agent string. I put the debug point in code and checked navigator.useragent
property, it shows IE8 User agent string but in Fiddler it shows IE11 user agent string.
I am confused why its not using IE8 UA in compatibility mode. I am working on changing code to make compatible with IE11 but it may take time. So found using x-ua-compatible
might be quick solution. Please advise.
Thanks in advance.