Problems with IE8 Standards Mode, SharePoint menus, and DocTypes 11

With the official release of Internet Explorer 8, many people are starting to test their custom SharePoint branding in the new browser. IE8 is an interesting animal in that it decides its rendering engine based on certain criteria in your code (in SharePoint’s case, the master page):

  • If IE8 sees a valid DocType declared it will attempt to render a site in IE8 Standards Mode.
  • If IE8 does not see a DocType it will attempt to render a site in quirks mode (otherwise known as pre IE7 rendering mode).


One nice thing about IE8 is that it includes Developer Tools (click Tools > Developer Tools) which will actually show you which rendering mode is currently being used (the last tab at the top of the Developer Tools window). You can also use this tab to test the other rendering modes, selecting them and observing the result in the refreshed window.

Now, on to the topic of SharePoint master pages. Some Microsoft out of the box master pages (like default.master and the horizon master pages) do not have a DocType declared and will render in quirks mode by default in IE8 (which is how they should be rendered because the master page html is coded that way). Some other Microsoft out of the box master pages (like BlueBand.master) DO have DocTypes declared. For these master pages (and for ones like default.master if you were to add a DocType to them,) IE8 will automatically attempt to render them in IE8 Standards Mode. This is bad because from all of my initial testing, the out of the box SharePoint menu’s can not show dynamic menu items (otherwise known as fly-outs) in IE8 Standards Mode. They appear as just white boxes without a link to click on.

To correct this problem the IE8 team has given us two meta tags:

The first will force a page to render in IE7 mode no matter what, and the second forces a page to render as IE7 would have rendered it historically. The difference being the EmulateIE7 meta tag will force the browser to look for a DocType before rendering in IE7 mode and if it does not find one it will render in Quirks Mode. This is the correct behavior for how IE7 used to render pages and I believe the correct one that should be added to all custom current version SharePoint  master pages.

So in closing, if your custom master page (or even your BlueBand based master page) is going to support IE8, you should seriously consider adding this meta tag:

Be sure to check-in a major version / publish and approve the master page after you add the tag. Also, you may have to restart your IE8 before the change will be picked up (mine cached the old version of the page and for a while I thought the meta tag wasn’t working).

Update 4:

There is a Hotfix though that should fix the problem:


UPDATE 3: Many people have been keen to tell me that SharePoint SP2 supposedly fixes this problem. The only thing I can see being done in SP2 is that now all of the out of the box master pages have the above meta tag added. You are still left to your own devices for your custom master pages.

UPDATE 2: I should also point out that you can solve this problem at the web server level if you don’t want to modify your master page. Note: I prefer the master page method since it is more absolute, no chance for accidental changes (but I know some folks that can’t edit their master pages). There is information and links for doing this at the bottom of this link:

UPDATE 1: Eric Lawrence (creator of the awesome Fiddler application) points out that intranet sites are rendered in IE8 by default in compatibility mode so the meta tag technically isn’t required in these environments. Note: according to IE team’s blog an intranet site is determined based on its local URL, not by IP address. So if users browse your intranet site via IP address or external URL they will see the site NOT in compatibility mode by default.


11 thoughts on “Problems with IE8 Standards Mode, SharePoint menus, and DocTypes

  1. Reply Parsifal Mar 20,2009 3:53 pm

    Great post, I actually searched for a solution for this problem today. Now i found it. 🙂

  2. Reply Ericlaw Mar 21,2009 8:10 pm

    By default, IE8 will render sites on your Intranet in Compatibility View mode, so using the META tag often isn’t strictly required.

  3. Reply The Mossman Mar 22,2009 12:37 am

    Ah, yes this is a good point. Many of my clients are Internet sites so I tend to think of them first.

  4. Reply The Mossman Mar 22,2009 12:40 am

    BTW Eric, kudos on Fiddler it is amazing software.

  5. Reply Jimmy Stewart May 7,2009 8:30 am

    Thanks for the explanation and the options to make this correction. It was very helpful.

  6. Reply sterling Jun 25,2009 11:22 am

    I found that IE=IE7 didn’t work on our SharePoint site; however, IE=7 did. Just FYI for anyone out there having problems. We are running MOSS 2007 w/ WSS SP2.

  7. Reply lifeSritha Aug 3,2009 3:15 pm


    thanks for the thmes. Inorder to modify it according to my company, I’m trying to include my company logo as the icon. But I do not see the logo when I apply it in the site settings. Can u pls tell me how to view the icon on home page/? I’m using Publishing theme.

  8. Reply jnturnbull Aug 3,2009 8:03 pm

    Just so you know, I applied the hotfix mentioned above and it worked like a charm. Menus now function normally in ie8. I also hd to change a couple of css issues but apart from that, all good.

    (Windows Server 2008 x86, MOSS SP2)

  9. Reply Tonyp Oct 20,2009 3:45 am

    Thanks for this info, it’s really useful to know.
    It’s strange that this effects the blueband master and not the default. I guess they are coded differently. I try to base all my master pages on default now as i found other css problems with the blueband master page.
    Its pretty simple to make the default master look like the blueband master just using a few lines of CSS.

    Love the new look of the blog by the way!


  10. Reply Anonymous Nov 4,2009 9:37 am

    русские школьницы фото скачать порно с подростками подростковые порно видео онлайн [url=][/url]

  11. Reply Web Developer Aug 23,2010 8:31 am

    thank you very much………

Leave a Reply