Skip to content

Instantly share code, notes, and snippets.

@cduruk
Created January 25, 2010 19:55
Show Gist options
  • Save cduruk/286183 to your computer and use it in GitHub Desktop.
Save cduruk/286183 to your computer and use it in GitHub Desktop.
Fixes to make the HTML5 tags work in inferior browsers
/* Make the new HTML5 tags work with Firefox */
/* See <http://orderedlist.com/our-writing/resources/html-css/structural-tags-in-html5/> */
header, nav, section, article, footer, aside{
display:block;
}
// Make the new HTML5 tags work in IE
// See <http://orderedlist.com/our-writing/resources/html-css/structural-tags-in-html5/>
//Put this in your HTML between <script> tags or in an external file
document.createElement('header');
document.createElement('footer');
document.createElement('section');
document.createElement('aside');
document.createElement('nav');
document.createElement('article');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment