Run quirks mode in one frame and standards mode in another?

瘦欲@ 提交于 2019-12-01 02:48:46

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.

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.

Nick Blanchard-Wright

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

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">

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!