Last active
December 16, 2015 01:49
-
-
Save deanhunt/5357505 to your computer and use it in GitHub Desktop.
XML Validation Error in Chrome
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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