Skip to content

Instantly share code, notes, and snippets.

@livingston
Forked from kangax/gist:296114
Created July 27, 2010 14:17
Show Gist options
  • Save livingston/492271 to your computer and use it in GitHub Desktop.
Save livingston/492271 to your computer and use it in GitHub Desktop.
// original (http://html5shiv.googlecode.com/svn/trunk/html5.js)
(function(){if(!/*@cc_on!@*/0)return;var e = "abbr,article,aside,audio,canvas,datalist,details,figure,figcaption,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,summary,time,video".split(','),i=e.length;while(i--){document.createElement(e[i])}})()
// kangax version (29 characters less, yay!)
/*@cc_on(function(e,i){i=e.length;while(i--)document.createElement(e[i])})("abbr,article,aside,audio,canvas,datalist,details,eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video".split(','))@*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment