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.
So, I am trying to understand what mode the iframe contents render in, in various IE browsers.
As best I can tell, in <= IE8, the parent (Sharepoint) will render in quirks mode, and the frame will render in standards mode. Which is what I want.
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?
Edit: In IE10, I tested various configurations of the parent (with doctype and without, and with various metas), and got these results:
- IE10/doctype/no meta: 10 Standards/10 Standards
- IE10/no doctype/meta edge: 10 Standards/10 Standards
- IE10/no doctype/meta 9: 9 Standards/9 Standards
- IE10/no doctype/meta 8: 8 Standards/8 Standards
- IE10/no doctype/meta 5: 5 Quirks/8 Standards
- IE10/no doctype/no meta: 10 Quirks/10 Standards
Some useful links:
- Will an iframe render in quirks mode?
- How to disable Compatibility View in IE
- iframe not rendering in ie9 mode when containing page is in quirks mode
IE sometimes makes me want to jump off a bridge.