I can’t get the html 5 elements working in IE 7 using modernizr here is the fiddle: fiddle
Dont know what I am doing wrong works in IE 8
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since HTML5 is getting more attention by way of marking up our new pages, and the only way to get IE to acknowledge the new elements, such as , is to use the HTML5 shiv, I’ve quickly put together a mini script that enables all the new elements.
Download html5shiv.js(https://github.com/aFarkas/html5shiv/) and must be inserted in the head element (this is because IE needs to know about the element before it comes to render them – so it can’t sit in the footer of the page, i.e. below the elements in question).
EDIT 1
With IE, even with the shiv, you need to declare the HTML 5 elements as block elements. I use this line for Internet Explorer, but you can modify it for the elements you need.
From the Modernizr Documentation: “you’ll also probably want to set many of these elements to display:block;”