hey there,

I'm curious about what happens when a non-HTML5 browser (like internet explorer 6 through 8) tries to render HTML5 markup.

will the browser ignore the tags? or is there a detection set to replace <footer> with <div id="footer">, for instance?

cheers,
Luciano

Comments

kevin-bcr’s picture

Subscribe

jolidog’s picture

If you check the html.tpl.php template you'll see the following string:

<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->

That means the theme is using the html5shiv for IE8 (and below) compatibility with html5 elements.
More information at http://html5shiv.googlecode.com and around the web.

damienmckenna’s picture

Status: Active » Fixed

I think Jolidog's comment answers it.

damienmckenna’s picture

Title: what happens in non-HTML5 browsers? » What happens in non-HTML5 browsers?
Component: Code » Documentation
Category: support » feature
Status: Fixed » Active

Am changing this to a documentation feature request as the project page doesn't mention the shiv being used.

luco’s picture

I'm testing a website in IE 8 and the <footer> element won't get styled - though it's there in the code. am I missing something?

superstar’s picture

For non html5 browsers:

When styling classes of the html components (nav, footer etc), you need to declare them like this:

Instead of:
.navigation {}

try:

nav.navigation {}

superstar’s picture

Status: Active » Fixed
luco’s picture

Status: Fixed » Active

thanks, that did it.

also, I was noob enough to add declarations on the wide CSS and then not view IE fullscreen. d'oh!

luco’s picture

Status: Active » Closed (fixed)

sorry, I accidentally changed the state.

Adam S’s picture

Does this mean that ie7 without javascript is supported?

EDIT: IE8 less than or equal to without JS enabled the theme breaks. The best answers I came up with by searching is that 15% use IE8 and IE7 (screw IE6) and 1% don't use JS. So that's 0.15% of total users this might be a problem with. However, of the noJS surfers most are tech savvy or have business work filters for JS so they will have new browsers. With my luck I build it for someone who has JS disabled running on IE8 and they will wonder why the theme doesn't work.

superstar’s picture

For this theme to work on IE browsers less than IE9, javascript is required.

Personally, I wouldn't worry about 0.15%