title: What mode renders an iframe inside Sharepoint 2007 (so, quirks mode)?
body: <p>I have a site running Sharepoint 2007.  SP 2007's master page has no DOCTYPE, hence renders in quirks mode.  I have another site embedded in an iframe inside Sharepoint. That site is more modern -- HTML5 DOCTYPE and a X-UA-Compatible meta of IE=Edge.</p>
  
  <p>So, I am trying to understand what mode the iframe contents render in, in various IE browsers.</p>
  
  <p>As best I can tell, in &lt;= IE8, the parent (Sharepoint) will render in quirks mode, and the frame will render in standards mode.  Which is what I want.</p>
  
  <p>However, in IE9+, what will happen?  The references below seem to think that my frame will start rendering in Quirks mode, which would be bad.  What if I put a X-UA-Compatible meta of IE8 in Sharepoint's master, will that give me standards mode back in my iframe?</p>
  
  <p>Edit: In IE10, I tested various configurations of the parent (with doctype and without, and with various metas), and got these results:</p>
  
  <ul>
  <li>IE10/doctype/no meta: 10 Standards/10 Standards</li>
  <li>IE10/no doctype/meta edge: 10 Standards/10 Standards</li>
  <li>IE10/no doctype/meta 9: 9 Standards/9 Standards</li>
  <li>IE10/no doctype/meta 8: 8 Standards/8 Standards</li>
  <li>IE10/no doctype/meta 5: 5 Quirks/8 Standards</li>
  <li>IE10/no doctype/no meta: 10 Quirks/10 Standards</li>
  </ul>
  
  <p>Some useful links:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/q/3717932/237091">Will an iframe render in quirks mode?</a></li>
  <li><a href="https://stackoverflow.com/questions/6348959/how-to-disable-compatibility-view-in-ie">How to disable Compatibility View in IE</a></li>
  <li><a href="https://stackoverflow.com/q/12467151/237091">iframe not rendering in ie9 mode when containing page is in quirks mode</a></li>
  </ul>
  
  <p>IE sometimes makes me want to jump off a bridge.</p>