Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a site which works fine when accessed from a remote web server. It runs (on IE8, which is what my organisation uses) with:

  • Browser mode: Internet Explorer 8
  • Document mode: Internet Explorer 8 Standards

However, when I open the same site from localhost, using the same browser, I get:

  • Browser mode: Internet Explorer 8 Compatibility View
  • Document mode: Internet Explorer 7 Standards

With the tag <meta http-equiv="X-UA-Compatible" content="IE=8" />, I can fix the document mode to IE8. However I can't lose the Compatibility View - and this is causing some aspects of my site to break (specifically, some AJAX functionality).

Do you have any idea (a) why IE8 is rendering my site in Compatibility View from localhost when it renders normally on a remote server, and (b) how to prevent/circumvent this problem?

Thank you.

share|improve this question

You might have the option set under your IE options to use Compatibility view for local sites: Compatibility view settings

From http://blogs.msdn.com/b/ie/archive/2009/06/17/compatibility-view-and-smart-defaults.aspx

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.