title: ParseFromString throws error in IE, but not in Chrome
body: <p>I'm using a KML plugin for leaflet that works great in Google Chrome.  In IE, however, It throws an error at the following code.</p>
  
  <pre><code>parser=new DOMParser();
  console.log(url) // outputs: "path/to/kmlfile.kml" in Chrome debugger
  url=parser.parseFromString(url,"text/xml"); //This line throws a parser error in IE 11, but is fine in Chrome
  </code></pre>
  
  <p>It seems to me that there is a mistake in this code - the author should pass an actual XML string, not just a url to an XML document to the parser.parseFromString() function.  It makes sense that the parser would have an error, as a path to a file is not a valid XML file (Note: kml files are just XML).  However, this does not cause any errors to be thrown in the Chrome Debugger tools, which is really strange.</p>
  
  <p>It seems to me that this should fail in both instances. Trusty MDN docs on DOMParser have no mention of putting a URL as a parameter in parseFromString().  So my question is why is this working in Chrome, but throwing an error in IE, and then what can I do to fix it?</p>
  
  <p>Note this question is different from the following url because this isn't a general error - this is about something that works in Chrome but fails in IE: <a href="https://stackoverflow.com/questions/23022956/internet-explorer-11-ie-11-throws-syntax-error-using-parsefromstring-in-dompar">Internet Explorer 11 (IE 11) Throws Syntax Error using parseFromString in DOMParser</a></p>