« Backbase Updates | ^ Main | Visual Studio '05 Install Issues on Vista »


Is IE 7 Rendering really new?

Yes and no. In talking to the IE developers at Mix I found out an interesting fax. IE 7 in fact still uses IE 6 rendering. The only time it does not use it is when the doctype is set to strict. Interesting huh? They wanted things to be backwards compatable. That was an interesting take for me. I thought the entire rendering engine was rewritten to conform to standards. In a sense it was but IE 6 rendering is still very much so still present.

Another interesting thing to note is IE 7 doesn’t like IE hacks. :-) It spits on them with disgust and dares you to spit back. The IE developers said to use commented if’s to fix the problems not hacks. I’ve seen them around (KM even has a couple) but didn’t realize exactly what it did or was for. IE guys say use

&lt;!--[if lt IE 7]><link rel="stylesheet" type="text/css" media="screen" href="ie.css" /><![endif]-->

What this does is target browsers less than IE 7 and allows you to have standards compliant CSS in 1 doc and IE 6 (and below) in a separate doc. This is a much better way of doing it and I wonder why more people aren’t using it. I make this assumption based on how widely known IE hacks are (complete books dedicated to them) versus the right way of doing it.

Either way…use strict for your doctype and use the commented if’s to get older browsers to work properly.

Posted by John C. Bland II on March 27, 2006 2:13 PM |

TrackBack

TrackBack URL for this entry:
http://mt.katapultmedia.com/mt-tb.cgi/86

Comments


danh zphjqwibr cwxjlznq khzyr pursikdle gdtrl tnryh

Posted by: zfmdhtxb rxeghyck | August 23, 2007 5:16 PM


danh zphjqwibr cwxjlznq khzyr pursikdle gdtrl tnryh

Posted by: zfmdhtxb rxeghyck | August 23, 2007 5:18 PM

Post a comment