rewrite HTML5 , fix #3