Skip to content

Instantly share code, notes, and snippets.

@wayferer
Forked from benplum/HTML5 Enabler
Created May 27, 2014 21:34
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 wayferer/3216284d8c7a5843ffa3 to your computer and use it in GitHub Desktop.
Save wayferer/3216284d8c7a5843ffa3 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|main|mark|meter|menu|nav|picture|progress|ruby|section|time|video".split('|'); for(var i = 0; i < els.length; i++) { document.createElement(els[i]); } } )();
@wayferer
Copy link
Author

added main tag

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