Skip to content

Instantly share code, notes, and snippets.

@rblalock
Created October 26, 2010 04:46
Show Gist options
  • Save rblalock/646336 to your computer and use it in GitHub Desktop.
Save rblalock/646336 to your computer and use it in GitHub Desktop.
The html5 shim for IE
<style>
/* CSS */
header, footer, article, section, nav, menu, hgroup {
display: block;
}
</style>
<script>
// Javascript to make IE recognize the elements
document.createElement("article");
document.createElement("footer");
document.createElement("header");
document.createElement("hgroup");
document.createElement("nav");
document.createElement("menu");
</script>
<!-- SHORTCUT TO THE ABOVE -->
<!--[if IE]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment