Run quirks mode in one frame and standards mode in another?
Asked Answered
W

4

13

I have an old application that uses frames (not iframes) was was written back in the IE6 days so it runs in quirks mode.

Is it possible (Using IE 7 or 8) to have one frame still in quirks mode and another in standards mode or must the whole browser be in one mode or another?

I've been trying with no success.

I've seen this answer, that applies to iframes, but what about plain-old-frames?

Walkling answered 4/2, 2011 at 19:48 Comment(0)
S
9

I believe that you don't get the same option with frames as you do with an iframe. As the linked question's answer stated, the target in an iframe is not dependent upon the parent. In regular frames the pages all rely on the parent. I don't think you can separate the types out.

Sorcerer answered 4/2, 2011 at 19:53 Comment(1)
This worked for IE8, but it doesn't work anymore for IE9. Doctype for iframes gets inherited from the parent page, and there is no way to overwrite it in the iframe...Seleucid
U
2

I'm not sure if this helps, but according to the Mozilla Dev center Firefox makes it's quirksmode decisions based on doctype only.

https://developer.mozilla.org/en/Mozilla's_DOCTYPE_sniffing

You'll notice using the old frameset doctype triggers "almost standards" mode, which could show up as quirksmode.

Unskilled answered 4/2, 2011 at 20:19 Comment(2)
Hmmm. I can tell from my layout that it's certainly quirks mode.Walkling
I'm not sure what the rendering difference between "almost quirks" and "quirks" mode is (guessing probably closer to quirks since it's rendering like that for you), but it does pretty definitively say that you won't get fulls standards mode with a frameset doctype.Unskilled
T
1

See my answer here for MSDN-documented solution for IE9: How to force Iframe to run quirks under a standard parent frame

In short, it is not possible to trigger quirks mode in a frame (or iframe) if the parent page is rendering in IE9 mode, but it is possible to trigger "quirks mode emulation" embedded in the IE9 rendering engine.

JSBin demo: http://jsbin.com/ozejuk/1/

Further reading: http://msdn.microsoft.com/en-us/library/gg558056(v=vs.85).aspx

Tier answered 22/3, 2013 at 5:52 Comment(0)
K
0

If you can modify the code (or HTML) of the application, you can add a meta tag (just below head), so it forces IE to render it in Quirks mode, like this:

<meta http-equiv="X-UA-Compatible" content="IE=5">

Kcal answered 1/6, 2012 at 18:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.