Skip to content

Commit deae25a

Browse files
author
Hirohisa Yamaguchi
committed
try parse responseText when responseXML is null
Microsoft Edge returns null when Content-Type does not suit see also: t-davies#5
1 parent bb42666 commit deae25a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

m-xml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ THE SOFTWARE.
6363

6464
xhr.open("GET", source, false);
6565
xhr.send();
66-
return xhr.responseXML;
66+
return xhr.responseXML || parseXMLString(xhr.responseText);
6767
}
6868
}
6969

0 commit comments

Comments
 (0)