Created
December 23, 2011 14:50
-
-
Save dciccale/1514394 to your computer and use it in GitHub Desktop.
HTML5 tag support for IE<9 in 222 bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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