html - How do I override internet explorer emulation in an iframe? -


the company work forces users visit site ie emulate ie8. need put iframe in content within iframe work ie9 , above. these 3 options i've added iframed page override parent pages ie8 emulation.

i've added header:

<meta http-equiv="x-ua-compatible" content="ie=edge"> 

and i've tried these scripts:

<!--[if ie]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->  <!--[if ie> <script> if (!document.documentmode || (document.documentmode < 9)) { document.write("<script src="http://html5shiv.googlecode.co..."></script>”); } </script> <![endif]--> 

is aware alternatives override parent pages emulation of ie8 or doing wrong?

this not possible, unfortunately. according microsoft's pages, web pages cannot display in multiple document modes, exception of ie10, can display frame in quirks mode child of standards mode page:

as of ie9 mode, webpages cannot display multiple document modes. example, consider standards-based webpage contains frame element displays content in quirks mode. ie9 mode displays child frame in standards mode (because parent document in standards mode). starting internet explorer 10, however, child frames can emulate quirks mode. more info, see ieblog: html5 quirks mode in ie10. best results, however, use document modes consistently.

source: https://msdn.microsoft.com/en-us/library/jj676915%28v=vs.85%29.aspx


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -