can't set document mode of subdocument of IFrame as Quirks Mode when top document is Standard IE9 Mode. - by hackwaly

Status : 

  By Design<br /><br />
		The product team believes this item works according to its intended design.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

ID 635648 Comments
Status Closed Workarounds
Type Bug Repros 4
Opened 1/11/2011 10:00:06 PM
Access Restriction Public


Under IE8, if the subdocument of IFRAME's DOCTYPE is not specified, it(the subdocument of IFRAME) will render as Quirks Mode. 

IE9 did not according to this behavior:
When top document is Standard IE9 Mode.
No way make subdocument rendered as Quirks Mode.

Can IE9 regress this behavior before release? There is too many page needs it.
Sign in to post a comment.
Posted by Microsoft on 5/3/2011 at 10:15 AM
Thank you for your feedback.

The issue you are reporting is by design.

Best regards,

The Internet Explorer Team
Posted by James 2 on 3/20/2011 at 8:44 PM
Quoting Microsoft's reply "If top is IE9, then everything under it is forced to IE9. If top is [other] then frames may be anything except IE9", I already set the top frame to IE8, but why the frames still rendered as IE9 standards? I expected the frames to render in quirks mode since its x-ua-compatible is set to IE5.

Are there any working samples that proof the above case?
Posted by ChrisMBarr on 2/4/2011 at 9:35 AM
This happens to me as well. When embedding a page that requires quirks rendering mode in a page that forces the latest version of IE with <meta http-equiv="X-UA-Compatible" content="IE=Edge" > The child page will also the IE9 rendering mode. IE8 did not behave this way.

This breaks several pages on our product because we are embedding Outlook Web Access in an iFrame, and it require IE5 document mode. Basically right now no one can use this at all in IE9. I have a reproducible code sample if anyone wants it. Here's a screenshot of it in action:
Posted by hackwaly on 1/13/2011 at 12:56 AM
I see it:
if top is IE9, it will check whether iframe indicate Quirks Mode,
but how to indicate that?
Posted by Taciturne on 1/12/2011 at 4:47 PM
"This is by design.
If top is IE9, then everything under it is forced to IE9. If top is [other] then frames may be anything except IE9."
Posted by IECustomizer on 1/12/2011 at 12:20 AM
Sample test cases work fine in IE9 PP 7
Posted by hackwaly on 1/12/2011 at 12:16 AM

use IE8 and IE9 see difference
Posted by hackwaly on 1/11/2011 at 11:35 PM
I confirm it again.
if iframe's src is set in html, ref a page without dtd. it's ok.
use document.write will cause the bug.