IE 8 Standards mode

I appear to need this IE specific meta tag[1] in order to get IE8 to render my page in standards mode,

<meta http-equiv="X-UA-Compatible" content="IE=100" > <!-- IE8 mode -->

The site I’m working on is commonly available on what would be classed as intranet so I think that’s quite possibly why[2] IE8 hasn’t been rendering it that way by default.

This seems a bit ugly to me but appears to be the solution.

[1] http://msdn.microsoft.com/en-us/library/cc288325%28v=VS.85%29.aspx

[2] http://blogs.msdn.com/b/ie/archive/2010/03/02/how-ie8-determines-document-mode.aspx

Update: just fixed the first link.

About these ads
Tagged ,

3 thoughts on “IE 8 Standards mode

  1. Michael says:

    Actually, IIRC using “IE=edge” it should always tell the any version of IE (since 8, I think) to use the latest stuff. Putting a specific number in tells IE it is targeted for that version and so it may one day be out of date.

  2. colinnewell says:

    For some reason I thought that flipped it into a subtly different mode, it looks like I was wrong though. It does look better, assuming you ignore their warning not to use it ;) The 100 does have a reasonable lifetime though too. I downloaded the IE9 preview and the pages render in IE 9 mode by default which is nice.

    It just seems odd that you need the extra tag in order to make it render in standards mode.

    • Michael says:

      Yes, you definitely need to add the tag. The only question is what value to give it. I think if you intend your page to be as close to standards compliant as possible, “edge” is probably the right thing. If you intend it to work with IE8 specifically, 8 is right. I don’t know if there’s a way to specify a range.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 64 other followers