fix IE bugs with html 5 elements