MooTools html5

How to get HTML5 working in IE.

Some browsers don’t have support for the new semantic elements.

new Element('header');
new Element('footer');
new Element('section');
new Element('aside');
new Element('nav');
new Element('article');
new Element('time');
alert(Browser.Engine.name); //trident = IE
alert(Browser.Engine.version); //version 5 = IE7

The fix

if(Browser.Engine.trident){
var html5_el = 'header,footer,section,aside,nav,article,time.split(,');
for(i=0;i<html5_el.length;i++)
{
new Element(html5_el[i]);
}
}