Created
January 25, 2010 19:55
-
-
Save cduruk/286183 to your computer and use it in GitHub Desktop.
Fixes to make the HTML5 tags work in inferior browsers
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
/* 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; | |
} |
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
// 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