Force IE8 emulation in IE10 iframe

My company recently migrated from IE8 to IE10 I need to emulate IE8 to render the page correctly in IE10

This is the structure of my page: Page structure

I want the main page and iframe to be displayed in IE8 mode, but only the main page is displayed in IE8 mode (content in the iframe is displayed in IE10 mode). In both the homepage and the iframe, I have:

tag <!doctype html> and metadata X-UA-Comapatible: IE=EmulateIE8

      

If I run the content of the iframe separamelly, it shows in IE8 mode.

How do I force IE10 to use IE8 mode also in an iframe?

+3


source to share


1 answer


The values ​​"emulate" tell IE to behave by default; that is, to use the mode that it usually uses based on the doctype declaration.

Since you are using the HTML5 doctype, this will cause IE to select edge mode, the latest and most accessible for this version of IE.

To restrict access to a specific mode, specify that in your content attribute value, for example. content="ie=8"

Note that you may need to do this for both the parent and child iframe. (Some versions have a specific set of parsing rules that allow you to mix standards modes, but this is even more confusing, so it's best to be consistent throughout.)



See Setting legacy document modes for details .

Hope it helps ...

- Lance

+3


source







All Articles