views:

456

answers:

4

Hi, there are document compatibility modes for all versions of IE browsers, but none for IE6. why is it like that? how can I make IE8/IE7 browser display a website in IE6 standards mode? other than changing the code to use conditional statements for different browsers, or different websites altogether, is there any easier or better solution for this issue?

http://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx

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

I did try using the IE5 mode, but didn't work. there are issues with page layout like width, height, scrollbars etc. (I haven't tested it extensively in IE8 yet). currently I am looking for a short term solution to release the app to the users with minimal changes for the updated browser and code will be changed later to make it fully compliant with IE8.

thanks, Rama

+1  A: 

There's no need for an specific setting for IE6, once the rendered for IE6 is the same of IE5.5, so setting up for IE5 you automatically set for IE6.

The difference between IE5 and IE6 is the implementation of better JavaScript (if I recall correctly) but no alteration was made in the rendering engine.

The first update in the rendering engine was in IE7, and a major overhaul was made in IE8.

Paulo Santos
This isn't quite right. IE6 in Quirks Mode is very close to IE5.5, but IE6 is also the version that introduced Standards Mode, which fixes many bugs and is closer to IE7 than IE5.
bobince
+2  A: 

Only the IE team can really answer why they no longer support the seriously buggy implementation of IE6 standards mode. One can only speculate "because its seriously buggy".

I'm afraid if you want to support IE6 you will have to jump through all the painful hoops that everyone else has to. Commercially you may have to, but if you don't I would recommend you simply don't.

AnthonyWJones
+1  A: 

No, there is no IE6 Standards Mode, because Microsoft already abandoned IE6 Standards Mode with the IE7 release.

IE8 is built on — and is largely bug-compatible with — IE7. But IE7 Standards Mode was already not bug-compatible with IE6 Standards Mode. Microsoft aren't going to go crazy trying to dig out and re-implement IE6 bugs in IE8, when in their collective mind those bugs are already gone forever since developers surely must have updated their sites to work with IE7 already.

Of course in reality terrible webapps that rely on IE6 bugs do still exist, so a depressing number of corporates are still stuck with IE6, making the whole world worse for everyone. It would have been helpful to have introduced the EmulateIEn functionality in IE7 so that IE6 bug-compatibility could be preserved. However no-one had thought of it at that point, so it's gone forever and a whole load of corporate Vista upgrades were aborted because of the lack of IE6 compatibility. Whoops!

(Oh dear. If only someone hadn't integrated IE with the OS we wouldn't have all this difficulty: one could run multiple versions of IE and consequently each new version wouldn't need to retain the bugs of the previous version. IE would be smaller, faster, better; users could upgrade without fearing loss of functionality; with more upgrades we could author to the new stuff in IE8 more readily; and MS would have made more money on OS upgrades. Funny how these decisions come around to bite you, huh?)

bobince
thanks. other comments were also useful
RKP
A: 

The solution is quite simple:

Make the code compliant to IE8 before releasing to the user.

Thomas