Handle whitespace in inline HTML text nodes more like other implementations