Skip to content

Instantly share code, notes, and snippets.

@lazerwalker
Created October 18, 2012 23:51
Show Gist options
  • Save lazerwalker/3915474 to your computer and use it in GitHub Desktop.
Save lazerwalker/3915474 to your computer and use it in GitHub Desktop.
IE shim for HTML5 elements
<!--[if lt IE 9]>
<script>
var e = ("abbr,article,aside,audio,canvas,datalist,details," +
"figure,footer,header,hgroup,mark,menu,meter,nav,output," +
"progress,section,time,video").split(',');
for (var i = 0; i < e.length; i++) {
document.createElement(e[i]);
}
</script>
<![endif]-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment