fix html error, better html5 support