title: How to make a meta tag the first one in the <head> section?
body: <p>I'm using JSF2, GlassFish 3.1, PrimeFaces 2.x.  </p>
  
  <p>I'm having strange rendering problems on IE9.  I'm supposed to be able to force IE9 to render as IE9 by inserting the following:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;!-- Enable IE9 Standards mode --&gt;
    &lt;meta http-equiv="X-UA-Compatible" content="IE=9" /&gt;
  ...
  </code></pre>
  
  <p>But the thing is, it's not working because (I'm told) the meta tag MUST be the first tag in the  section.</p>
  
  <p>When I do this in my XHTML file ...</p>
  
  <pre><code>&lt;html ...&gt;
  
  &lt;f:view contentType="text/html" locale="#{loginHandler.currentLocale}"&gt;
  
  &lt;h:head&gt;
      &lt;!-- Enable IE9 Standards mode --&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=9" /&gt;
  </code></pre>
  
  <p>The resulting HTML looks like this, where JSF/PrimeFaces has inserted a bunch of "link" and "script" tags before my new meta tag.</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;link type="text/css" rel="stylesheet" href="/orcf-webui/javax.faces.resource/jquery/ui/jquery-ui.css.jsf?ln=primefaces&amp;amp;v=2.2" /&gt;
  &lt;link type="text/css" rel="stylesheet" href="/orcf-webui/javax.faces.resource/wijmo/wijmo.css.jsf?ln=primefaces&amp;amp;v=2.2" /&gt;
  &lt;script type="text/javascript" src="/orcf-webui/javax.faces.resource/jquery/jquery.js.jsf?ln=primefaces&amp;amp;v=2.2"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/orcf-webui/javax.faces.resource/jquery/ui/jquery-ui.js.jsf?ln=primefaces&amp;amp;v=2.2"&gt;&lt;/script&gt;
  &lt;!-- Enable IE9 Standards mode --&gt;
  &lt;meta http-equiv="X-UA-Compatible" content="IE=9" /&gt;
  </code></pre>
  
  <p>Is there any way to get my meta tag in the right place so it will work?  (Or an alternative way to make this IE9 problem go away?</p>