Skip to content

Commit ba6159e

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: #5
1 parent 9666585 commit ba6159e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)