slapos_jio: wrapper DOMParser().parseFromString for better error handling
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
Showing
Please register or sign in to comment