When Microsoft released IE8, they added a way of ensuring which rendering mode the browser uses. You do it by setting a non-standard header, either with a meta
element in your HTML or by configuring your web server to send the header as part of the HTTP response. A lot more details can be found in Defining Document Compatibility (that URL looks far from stable, so don’t be surprised if it doesn’t work).
Always making sure to use a doctype that triggers full standards mode I’ve never encountered a need to use this myself, but I encountered it recently on a couple of sites. What I noticed was that using the following meta
element to set the compatibility header will cause a validation error (Bad value “X-UA-Compatible� for attribute “http-equiv� on element “meta�) in HTML5:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Posted in Browsers, HTML 5, Web Standards.
April 6th, 2011 on 7:30 am
Thanks to the good post, that must have consumed precious time to create with nice info.