Skip to content

Instantly share code, notes, and snippets.

@deanhunt
Last active December 16, 2015 01:49
Show Gist options
  • Save deanhunt/5357505 to your computer and use it in GitHub Desktop.
Save deanhunt/5357505 to your computer and use it in GitHub Desktop.
XML Validation Error in Chrome
new DOMParser().parseFromString('<type>Inkblot</type', 'text/xml');
// <type>
// <parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black">​
// <h3>This page contains the following errors:</h3>
// <div style="font-family: monospace; font-size: 12px">error on line 1 at column 24: expected '>'</div>
// <h3>Below is a rendering of the page up to the first error.</h3>
// </parsererror>
// </type>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment