Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

IE 11 - Document modes clarification

$
0
0

I have to run a "standards" page inside an iframe and the parent page is in "quirks" mode.I am getting the documentMode as "8" in iFrame.Please clarify this behaviour.

Parent page : test.html

<!DOCTYPE html public "-//W3C//DTD HTML 4.0 Transitional//en">
<html>
  <head>
<meta http-equiv="X-UA-Compatible" content="IE=5">
<script>
function onloa(){
alert("Parent document Mode : " + document.documentMode);
}
</script>
</head>
<body onload="onloa()">
<iframe id="frame1" frameborder="1" src="test1.html"></iframe>
</body>
</html>

Child iframe : test1.html

<!DOCTYPE html>
<html>
  <head>
<meta http-equiv="X-UA-Compatible" content="IE=11">
<script>
function onloa(){
alert("Child iFrame document Mode : " + document.documentMode);
}
</script>
</head>
<body onload="onloa()">
</body>
</html>


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>