Skip to content

Instantly share code, notes, and snippets.

@dciccale
Created December 23, 2011 14:50
Show Gist options
  • Save dciccale/1514394 to your computer and use it in GitHub Desktop.
Save dciccale/1514394 to your computer and use it in GitHub Desktop.
HTML5 tag support for IE<9 in 222 bytes
for(var a="abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video".split(" "),b=a.length;b--;)document.createElement(a[b])
Is safer to use this code inside an IIFE (Immediately-Invoked Function Expression)
(function () { /* code */ }());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment