Skip to content

Instantly share code, notes, and snippets.

@devlint
Forked from benplum/HTML5 Enabler
Last active August 29, 2015 13:56
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 devlint/9071561 to your computer and use it in GitHub Desktop.
Save devlint/9071561 to your computer and use it in GitHub Desktop.
Quickline enabler html5 code for non-html5-browser like IE<9
/* 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