title: IE9 rendering IE8 document standard
body: <p>I need my application to run in IE9 document standard and I cannot figure out why it automatically renders in IE8 document standard.</p>
  
  <p>I'm using JSF 2.1.17 and Primefaces 3.4, running in Glassfish 3.1.2. My IDE is Netbeans-7.1.2. When I open the developer tools in IE, under the "HTML" tab it shows: </p>
  
  <pre><code>&lt;--!DOCTYPE html--&gt;
  &lt;html  xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt; 
  </code></pre>
  
  <p>However, under the "Script" tab it shows: </p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
  &lt;HTML lang=en xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"&gt;
  &lt;HEAD&gt;
  &lt;META content="IE=8.0000" http-equiv="X-UA-Compatible"&gt;
  </code></pre>
  
  <p><strong>I have looked through all my pages and templates and NO WHERE can I find the meta content="IE=8.0000" or the !DOCTYPE that is shown above</strong>. It is very odd. </p>
  
  <p>All my pages have: </p>
  
  <pre><code>&lt;!DOCTYPE html&gt; 
  </code></pre>
  
  <p>My main template has this: </p>
  
  <pre><code>&lt;!DOCTYPE html&gt; 
  
  &lt;html   xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" 
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:p="http://primefaces.org/ui"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"&gt;
  </code></pre>
  
  <p>Other pages have: </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;ui:composition xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:ui="http://java.sun.com/jsf/facelets"
                  xmlns:f="http://java.sun.com/jsf/core"
                  xmlns:h="http://java.sun.com/jsf/html"
                  xmlns:p="http://primefaces.org/ui"
                  template="/layout/someFile.xhtml" &gt;
  </code></pre>
  
  <p>Here are the things I have tried: </p>
  
  <p>1) Updated the Glassfish JSF to 2.1.17, since I read that there was a bug with older versions of Mojarra that caused it to ignore the DOCTYPE. </p>
  
  <p>2) I added: </p>
  
  <pre><code>&lt;meta http-equiv="X-UA-Compatible" content="IE=9" &gt; 
  </code></pre>
  
  <p>to every page, hoping it would enforce IE9, but this did not work. </p>
  
  <p>3) I then tried using content="IE=Edge", still no changes. </p>
  
  <p>4) I changed my DOCTYPE to: </p>
  
  <pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; 
  </code></pre>
  
  <p>unsure if XHTML needed this strict DOCTYPE to render properly. But this did not work. </p>
  
  <p>Any help would be great. I have done a lot of research trying to sort this out, however I am new to web development, so I my understanding is quite limited.</p>