
Originally Posted by
vasyapupkin
I was told multiple times that setting "browser mode" to IE7 in IE8 developer tools is 100% equivalent to running IE7 natively.
Well they were wrong I'm afraid and there are some small differences as have been noted in a number of posts on these forums.
Hers is an example of an IE7 bug that only shows in IE7.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>IE7 general sibling selector (~) bug 1</title>
<style type="text/css">
/* The ruleset below (empty or otherwise) is required for the bug! */
.holder b {
}
.holder ~ span b {
background: red;
}
</style>
</head>
<body>
<div class="holder"> <i>
<!-- HTML COMMENT OR ANY ELEMENT -->
<span> <span><b>My background is ony red in IE7</b></span> </span> </i> </div>
</body>
</html>
IE8 in any mode fails to find it or with any ie meta tag.
Therefore it is unreliable to use IE8 for testing IE7 because specific bugs are not found which would be the reason for checking in the first place
Bookmarks