Skip to content

Instantly share code, notes, and snippets.

@cheeaun
Created March 16, 2009 03:22
Show Gist options
  • Save cheeaun/79686 to your computer and use it in GitHub Desktop.
Save cheeaun/79686 to your computer and use it in GitHub Desktop.
HTML5 elements NOW!
/* HTML5 elements for IE
* more reference from: http://remysharp.com/2009/01/07/html5-enabling-script/
*/
(function(){
var e = 'abbr article aside audio bb datagrid datalist details dialog eventsource figure footer header mark menu meter nav output progress section time video'.split(' ');
var i = e.length;
while (i--) document.createElement(e[i]);
})();
article, aside, dialog, figure, footer, header, section { display: block; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment