Skip to content

Instantly share code, notes, and snippets.

@u01jmg3
Forked from benplum/HTML5 Enabler
Created July 25, 2014 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save u01jmg3/883407c15bbe66fd98f1 to your computer and use it in GitHub Desktop.
Save u01jmg3/883407c15bbe66fd98f1 to your computer and use it in GitHub Desktop.
/* 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]); } } )();
@u01jmg3
Copy link
Author

u01jmg3 commented Oct 24, 2014

Paste the JavaScript in between script tags

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