Make Internet Explorer behave like a standards-compliant browser

First of all, when you start a new project, you should not forget about the IE7.js project from google code. This is a java script library that makes Internet Explorer behave like a standards-compliant browser. It also fixes transparent PNG's and now are displayed correctly.

All you have to do is to add the following code to the HEAD element on your webpage. This makes IE5-6 to be compatible with IE7.

<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script>
<![endif]-->

CSS selectors, properties and other bugs are now fixed. Check the examples on the project page for details. There is also an IE8.js script that makes any IE5-7 browser behave like Internet Explorer 8.

Thanks Marius! I'm just

Thanks Marius!
I'm just working on a project that really needs this.

Andrei

This works very well for any

This works very well for any php project, but I never got it to work with Drupal. Maybe you'll have more luck

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.