HTML5 parser and some polish