XML errors reporting could fail when DOM mutation events listeners are registered. See example in attachment. This xml document contains "</>" which usually leads to an error message. But since there is DOMSubtreeModified event listener added to the root element, error message is replaced by some other message.
Created attachment 100812 [details] XML with errors and DOM mutation event listeners registered
Should we just block any script execution once an XML parsing error is detected?