corrections to inline HTML parsing