Created
September 21, 2011 16:22
-
-
Save roberocity/1232524 to your computer and use it in GitHub Desktop.
Minimum needed to support HTML5 element in IE < 9
This file contains hidden or 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
// @roberocity | |
// this is the minimum to do to provide html5 element support for older versions of IE | |
for(i in k='abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|subline|summary|time|video'.split('|')){document.createElement(k[i]);} | |
// a better solution may be by @rem, @jon_neal & @aFarkas, but I've had a few errors when printing using this: http://html5shim.googlecode.com/svn/trunk/html5.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment