Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

Pregunta Force IE9 Document Mode in iFrame

  • viernes, 20 de julio de 2012 16:43
     
      Tiene código

    Hello,

    How can I force IE to render an iFrame in IE9 document mode when the parent is in Quirks Mode? Everything I tried so far doesn't work:

    Here's part of my iFrame code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

    <html style="width:100%"> 

    <head>  

    <meta http-equiv="X-UA-Compatible" value="IE=edge">

    I've also tried with IE=9 and it doesn't work. The iFrame always render using the parent's document mode.

    The problem is that my iFrame is using "-ms-transform" CSS property to rotate an image, which only works with IE9 (and that's the only IE version we support). That function doesn't work when the parent is in Quirks Mode, but works when the parent is forced to use IE9 document mode (hence the iFrame also renders as IE9). The parent is an old site so we cannot set the parent to use IE9 document mode, because it renders broken.

    Thank you!

Todas las respuestas

  • lunes, 23 de julio de 2012 21:07
     
     

    I don't think you can load an iframe in IE9 mode while the out most document is Quirks Mode. The document mode in IE9 is all IE9 mode or all legacy modes, so no mixing is allowed.