www.nickhodge.com

microsoft, munging and on being a mercurial iconoclastic professional geek.

Fixing nickhodge.com (quickly) for IE8

with 4 comments

Inter­net Explorer 8 beta 2 has been released. The night before a big PR thing in Mel­bourne (Premier of Vic­toria, etc) and I decided to install it on my demo laptop. Brave, yet safe move.

What about this website?

Not so good. Some­thing is broken some­where. In the week before TechEd 2008 I don’t have time to com­pletely dia­gnose and fix the word­press tem­plate. So, sort of like weld­ing it together for a few weeks until things die down — it is time for a simple fix.

How can you tell? See the “broken doc­u­ment” icon on the right of the URL: this indic­ates that the site has been designed for older browsers.

IE8 Fix

 

There are two poten­tial fixes. One is to click on the broken icon, and Inter­net Explorer will revert to Inter­net Explorer 7 mode.

A smarter fix for this web site is a one-line change to my tem­plate (in my case, header.php for this template)

<meta http-equiv=“X-UA-Compatible” con­tent=IE=EmulateIE7” />

 

IE8 Fix

 

Refresh­ing the site, and magic­ally it renders cor­rectly, and there is no “broken” doc­u­ment icon.

IE8 Fix

Written by Nick Hodge

August 30th, 2008 at 8:13 pm