Skip to content

Instantly share code, notes, and snippets.

@adamjacob
Created January 23, 2013 00:02
Show Gist options
  • Select an option

  • Save adamjacob/4600171 to your computer and use it in GitHub Desktop.

Select an option

Save adamjacob/4600171 to your computer and use it in GitHub Desktop.
Simple fix to trick IE into allowing HTML5 Tags in the dom.
// Put all the HTML5 Tags you would like to use in this array
$.each(['article','aside','details','figcaption','figure','footer','header','hgroup','nav','section','summary'],
function(index,value){
$('<'+value+' />');
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment