Add in some html5lib workarounds for known issues