IE do our own parsing to preserve whitespace, fixes #682