rewrite html5,fix #1