Hi!

It seems that the element in page.tpl.php doesn't work in IE8 and lower. I've enable the Modernizr module, downloaded the latest Modernizr build (with htmls5shiv), but none of the styling works (e.g. background, padding, margin and width). When changing the element to a normal div or changing it to another html5 element (e.g. header, footer or aside) everything works as expected.

Is it normal behavior that the main tag isn't recognized, or am I missing some configuration options?

Comments

Snugug’s picture

Status: Active » Fixed

That behavior is incorrect. html5shiv 3.6.2, which was tagged 4 months ago, contains the main element. Updating to html5shiv 3.6.2 will solve this problem for you.

combicart’s picture

Ok, thanks!

That's strange. I've downloaded the latest Modernizr (2.6.2) with html5shiv (3.6), but the main element isn't there in the script. All the other elements are there, but main is missing. I've added this manually and now it working correctly.

Thanks again!

Snugug’s picture

Status: Fixed » Closed (fixed)

Yup. Modernizr ships with 3.6, not 3.6.2. Glad it's fixed!