html5 parser and some fix