Alternative way of html5 parsing