Sunday, May 19, 2024
176
rated 0 times [  181] [ 5]  / answers: 1 / hits: 17540  / 12 Years ago, thu, march 29, 2012, 12:00:00

I have a frame that needs compatibility mode but parent frame seems to be setting it so the following tag inside the frame does nothing.



    <meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 />


Is there anyway to apply compat mode to only the frame, or have the frame apply compat mode to the parent frame.



Was thinking if there is a javascript method to switch modes I could apply it to the parent frame from the child frame.


More From » internet-explorer-9

 Answers
5

So here's what I've gathered.



The only thing that seems to work is the meta tag way.



However, it doesn't appear to work in frames as IE9 has disabled the ability of one frame to be of different type than another.



The meta tag also can't be preceded by script or link tags, only and other meta tags from what I've noticed, otherwise it fails as well.



TEST CASE:



<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
<html>
<head>
<title>Test test</title>
<meta name=keywords content=keywords, keyword, keyword phrase, etc.>
<!--<link href=test.css rel=stylesheet type=text/css />-->
<!--<script type=text/javascript>alert('test');</script>-->
<meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 />
</head>
<body>
inline-block <div style=display:inline-block>test</div>
</body>
</html>

[#86528] Wednesday, March 28, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
leslijessalyng

Total Points: 650
Total Questions: 85
Total Answers: 109

Location: Croatia
Member since Mon, Sep 6, 2021
3 Years ago
leslijessalyng questions
Fri, Feb 21, 20, 00:00, 4 Years ago
Tue, Jul 30, 19, 00:00, 5 Years ago
Fri, Jul 5, 19, 00:00, 5 Years ago
Wed, Mar 13, 19, 00:00, 5 Years ago
;