Fortunately, it turns out to be pretty easy to teach IE about these new elements, so that it will render them correctly. The trick is to use Javascript to create the elements you need in the DOM before the browser starts rendering.
For XPages applications I use the following code. Put it in your theme's <resources> section. It will only be included for visitors who use Internet Explorer 6 up to 8 and it create a bit of Javascript in the head of each page.
<script
clientSide="true"
rendered="#{javascript:context.getUserAgent().isIE(6,8)}"
contents="document.createElement('header');document.createElement('hgroup');
document.createElement('nav');document.createElement('menu');
document.createElement('section');document.createElement('article');
document.createElement('aside');document.createElement('footer');">
</script>
With this IE will treat the elements as if they are div's, and that's pretty much all you need.
Game on!

Timo,
ReplyDeleteThx for this, although you could use html5 shiv.
Or use
Or plain javascript, most sites stat you should add this to your css
----------
header, footer, article, section, nav, menu, hgroup, aside{
display: block;
-----------
}
Ruud