Use html5lib for parsing if available.