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>