title: Force IE8 compatibility mode off for Intranet site using meta tags
body: <p>All of the following questions are related and some of them marked as fix but does not seem to be working.</p>
  
  <p>My problem:</p>
  
  <ol>
  <li>Problem with IE8.</li>
  <li>I have Intranet site built on Primefaces 5.1.7,
  JSF 2.2.8-04</li>
  <li>Trying to disable compatibility mode of IE8 which is
  enabled by default for Intranet web sites.</li>
  <li>Problem is we want to set minimum browser requirement to IE8, but web side is run on Intranet domain so it by default runs on compatibility mode and IE8 user is not allowed to login.</li>
  </ol>
  
  <p>Solution Available (Not working):</p>
  
  <pre><code>&lt;f:facet name="first"&gt;
   &lt;meta http-equiv="X-UA-Compatible" content="IE=edge" /&gt;
  &lt;/f:facet&gt;
  </code></pre>
  
  <p>Following does not work:</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/3449286/force-ie-compatibility-mode-off-in-ie-using-tags#comment26890406_3449338">Force IE compatibility mode off using tags</a></li>
  <li><a href="https://stackoverflow.com/questions/2742853/force-internet-explorer-8-browser-mode-in-intranet">Force &quot;Internet Explorer 8&quot; browser mode in intranet</a></li>
  <li><a href="https://stackoverflow.com/questions/27571231/x-ua-compatible-not-working-in-ie-9-for-intranet-sites">X-UA-Compatible not working in IE 9 for intranet sites</a></li>
  <li><a href="https://stackoverflow.com/questions/27144153/intranet-jsf-application-opening-in-compatibility-mode-in-ie9">intranet jsf application opening in compatibility mode in IE9</a></li>
  <li><a href="https://stackoverflow.com/questions/11095319/how-to-fix-document-mode-restart-in-ie-9">How to fix Document mode restart in IE 9</a></li>
  </ol>
  
  <p>Any help is appreciated.</p>
  
  <p><strong>First Edit</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
                  &lt;meta http-equiv="X-UA-Compatible" content="IE=edge" /&gt;
                  &lt;link type="text/css" rel="stylesheet" href="/payroll/javax.faces.resource/theme.css.jsf?ln=primefaces-bluesky" /&gt;
                  &lt;link type="text/css" rel="stylesheet" href="/payroll/javax.faces.resource/css/screen.css.jsf" /&gt;
                  &lt;script type="text/javascript" src="/payroll/javax.faces.resource/jquery/jquery.js.jsf?ln=primefaces&amp;amp;v=5.1.7"&gt;&lt;/script&gt;
                  &lt;script type="text/javascript" src="/payroll/javax.faces.resource/primefaces.js.jsf?ln=primefaces&amp;amp;v=5.1.7"&gt;&lt;/script&gt;
                  &lt;link type="text/css" rel="stylesheet" href="/payroll/javax.faces.resource/primefaces.css.jsf?ln=primefaces&amp;amp;v=5.1.7" /&gt;
                  &lt;script type="text/javascript" src="/payroll/javax.faces.resource/jquery/jquery-plugins.js.jsf?ln=primefaces&amp;amp;v=5.1.7"&gt;&lt;/script&gt;
                  &lt;title&gt;Payroll Center&lt;/title&gt;
                  &lt;script type="text/javascript" src="/payroll/javax.faces.resource/js/script.js.jsf"&gt;&lt;/script&gt;&lt;!--[if lt IE 9]&gt;
                  &lt;script type="text/javascript" src="/payroll/resources/js/selectivizr-min.js"&gt;&lt;/script&gt;&lt;![endif]--&gt;
                  &lt;link rel="shortcut icon" href="/payroll/resources/img/favicon.ico" /&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p><strong>Second Edit:</strong></p>
  
  <ol>
  <li>Screenshot is from IE developer tool.</li>
  <li>I removed that xml tag</li>
  <li>There are two things in tool Browser mode and Document Mode.</li>
  <li>Document Mode is getting changed to IE8 Standards but Browser mode remains the same, Browser mode is the key to change version which does not gets changed.</li>
  <li>I might me wrong i am just guessing for now that document mode gives ability to run some IE8 features but still running under IE8 compatibility mode which is basicall version IE7. NOT SURE GUESS</li>
  </ol>
  
  <p><img src="https://i.stack.imgur.com/X1Rcx.jpg" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/KEnDG.jpg" alt="enter image description here"></p>
  
  <p><strong>Third Edit</strong>:</p>
  
  <p>As per following blog you can not change browser mode but this was written in 2010. i am no sure how much valid this is but what he explains actually happening. But require second opinion if this is really true. <a href="http://blogs.msdn.com/b/ie/archive/2010/10/19/testing-sites-with-browser-mode-vs-doc-mode.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/b/ie/archive/2010/10/19/testing-sites-with-browser-mode-vs-doc-mode.aspx</a> </p>
  
  <p>Thanks again for your time</p>