-
Rafael Monnerat authored
As exposed by Romain, `parseFromString` does not throw any error if the XML parsing fails. Instead, you have to manually check if there is a `parsererror` element inside the returned document. See: https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString#error_handling
dacfeb78