IE7 and IE8 hack behavior

We’ve had the luxury of hacks to fine tune Internet Explorer bugs. Internet Explorer 7 disabled the majority of hacks, with the exception of the * hack. This hack allowed you to send a style only to Internet Explorer by prefacing an attribute with an asterisk.


/*this is for all browsers*/
#main p {color:black;}
/* this is for Internet Explorer */
#main *p {color:red;}
/*this is ignored by IE7 and will target IE6 */
#main _p {color:green;}

This set of hacks allowed us to control IE7 and IE6. However, IE8 does not recognize the * hack. Special IE8 rules will either need to be defined with conditional comments, the Microsoft proposed meta tag, or some new hack to be discovered. Let’s hope the mature version of IE8 will reduce the need for these hacks.

For more information on the above hacks, visit an earlier post: IE7 Hacks

Internet Explorer 8 beta released for testing

The MIX 2008 conference is this week and Microsoft is showing off some of their latest tools. One of these is the much anticipated and discussed Internet Explorer 8 browser. It’s important to remember that this is still a beta 1 release and is much better than the IE7 beta 1. This one actually has significant changes.

Download Internet Explorer 8

You can download Internet Explorer 8, Beta 1 from the Microsoft Developer site. However, here are a few things to keep in mind:

  1. This installation takes some time, about 15 minutes, and will require a restart of your computer.
  2. It will replace your existing Internet Explorer and is not available as a stand-alone browser.
  3. It renders in standards-mode as a default. You’ll see a button to render in IE7 mode. This is helpful to see the changes between the versions.
  4. Many sites will have significant layout issues in the standard view. You may need to re-evaluate your conditional comments to specify IE7 instead of greater than IE6
  5. IE8 is ignoring the * hack! This means you can use the underscore hack for IE6, the * hack for IE6 and IE7 and … um… I don’t know yet for IE8.

Is IE8 better than IE7?

It’s still really early to find all of the bugs and benefits of the new browser. The team needs to be commended for the fast development and their willingness to listen to criticism and change the default behavior at such a late point. I look forward to the more mature releases.

Updates

Find out what CSS Safari supports and what it doesn’t

There’s a great page on the Mac site that lists exactly which CSS rules are supported by Safari. I’d love to see a grid of all major browsers and what CSS they support. While outdated, this CSS3 support grid is a nice start. Heck, maybe I’ll get off my duff and do one myself. If you know of a browser CSS or JS Support grid, leave a comment for everyone to share