Let me start saying that thought I know there are two or three good answers about this on stackoverflow, none (or any other I found on the internet) works for me.
My application doesn't support internet explorer compatibility mode, and my client workstations are set with the "Display all intranet sites in compatibilty view option" check box checked.
I tried various solution, among which:
- using meta tags such as <meta http-equiv="x-ua-compatible" content="IE=edge>
with all variants of IE versions. I tried putting this as the first element after tag and right after tag.
- I also tried putting <!DOCTYPE html>
to force HTML5 doctype, which is the current preferred solution suggested by Microsoft to force the browser to work with the highest engine available (since it is HTML5 doctype).
Internet explorer 8 couldn't care less about all of these, and keeps happily running in compatibility mode ("IE8 Compat View" says the debugger).
on the other hand, using <meta http-equiv="x-ua-compatible" content="IE=edge>
works fine for IE9, forcing compatibility mode off.
My question is if anybody knows how to force once and forever IE8 compatibility mode off from webpage, or even server side (Weblogic 12c), programmatically.
Thanks