Recently, when I opened a local site intranet site in IE10, it looked broken. When I cross checked the same on my production sever it looked fine. I checked to make sure all my code was same, it was.
So, what gives?
I hit F12 and saw 3 things which seemed off.
1. Browser mode: IE10 Compat View
2. Document Mode: IE7 Standards
3. What was my DOCTYPE commented?
So I started googled "ie10 doctype getting commented out" and I found my answer here:
The following post also says, "Are you on the same domain? If so, IE automagically forces one into intranet-friendly compatibility mode. "
To summarize, if you put this in your web.config, it generates a META tag in the HEAD telling IE to use latest rendering mode instead of going to older modes no matter what.
<add name="X-UA-Compatible" value="IE=edge" />