Is it possible to disable the IE patibility mode from within an Iframe?
If I use the following meta in the iframe
html, this not working:
<meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE" />
Is it possible to disable the IE patibility mode from within an Iframe?
If I use the following meta in the iframe
html, this not working:
<meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE" />
Share
Improve this question
edited May 1, 2015 at 16:01
jbutler483
24.6k11 gold badges100 silver badges148 bronze badges
asked May 1, 2015 at 15:48
Below the RadarBelow the Radar
7,63511 gold badges69 silver badges145 bronze badges
2
- possible duplicate of Force parent window of iFrame into Compatability mode without access? – André Dion Commented May 1, 2015 at 16:21
- It's the same problem: "I want to <do something> to the document including me via an iframe" with the same answer: You cannot do that unless you own the document that contains the iframe. – André Dion Commented May 1, 2015 at 16:25
1 Answer
Reset to default 4It depends on if you have access to the x-ua-patible meta of the host (parent). When the host page is at IE9 mode or above, its state is imposed on the iframe. Here's a good explanation, given by a moderator at MS-Connect.
https://connect.microsoft./IE/feedback/details/1047106/when-webpage-emulates-ie-5-embedded-iframe-shows-ie-8
Here's supplemental info about how Quirks mode forked two ways beginning with IE10.
https://msdn.microsoft./library/hh869300(v=vs.85).aspx
Here's a live demo which allows changing the IE modes on-the-fly.
It was patched to also allow selecting the iframe url.
https://googledrive./host/0B8BLd2qPPV7XfnZQRk1JSkg5cFVMbGI1QkZVclVBbUtWZnV2bmczUHpSaVJmSXBOdUg2ek0/toggle-IE-pat-and-quirks-modes.html