Skip to content

Instantly share code, notes, and snippets.

@alirobe
Created February 1, 2012 06:03
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alirobe/1715402 to your computer and use it in GitHub Desktop.
Save alirobe/1715402 to your computer and use it in GitHub Desktop.
On-demand IE9 rendering for SharePoint 2010 Master Pages.
<asp:ContentPlaceHolder runat="server" id="html5">
<-- In your .aspx page, use a override this ContentPlaceHolder using "IE=9" to enable HTML5 features - on pages where it's required... -->
<meta http-equiv="X-UA-Compatible" content="IE=8"/>
</asp:ContentPlaceHolder>
<asp:Content runat="server" ContentPlaceHolderID="html5" ID="HTML5">
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
</asp:Content>
@AhHa45
Copy link

AhHa45 commented Oct 8, 2014

do understand right, that I can insert the first of the two codes to enable IE=9 on any page if needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment