Fixed a parsing error in DOMParser