Tip: Make IE9 Use Standards Mode When Developing Locally

Recently I was testing out browser compatibility on a WordPress theme which I’m building. Since I do my development on a Mac, I was running Windows in a virtual machine. I have a web server installed locally on my Mac, which I can access from my windows VM. The problem was that Internet Explorer 9 kept insisting on rendering the site in IE7 compatibility view mode. I could use IE9’s developer tools to switch the rendering mode back to IE9, but whenever I would close the browser and reopen it, the page would be in rendered in IE7 mode again. And I’m using a valid HTML5 doctype, so I knew that wasn’t the cause of the problem. Continue reading