Skip to content

Instantly share code, notes, and snippets.

@benplum
Created December 19, 2013 20:06
Show Gist options
  • Save benplum/8045366 to your computer and use it in GitHub Desktop.
Save benplum/8045366 to your computer and use it in GitHub Desktop.
HTML5 Enabler
/* Pre-Define HTML5 Elements in IE */
(function(){ var els = "source|address|article|aside|audio|canvas|command|datalist|details|dialog|figure|figcaption|footer|header|hgroup|keygen|mark|meter|menu|nav|picture|progress|ruby|section|time|video".split('|'); for(var i = 0; i < els.length; i++) { document.createElement(els[i]); } } )();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment