Skip to content

Commit

Permalink
fix(parseXml): #74 Fix old IE compatibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
FLAHOU Maxime committed Jul 15, 2019
1 parent e5f9301 commit a96daa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x2js.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@
var isIEParser = window.ActiveXObject || "ActiveXObject" in window;

// IE9+ now is here
if (!isIEParser) {
if (!isIEParser && document.all && !document.addEventListener) {
try {
parsererrorNS = parser.parseFromString("INVALID", "text/xml").childNodes[0].namespaceURI;
} catch (err) {
Expand Down

0 comments on commit a96daa1

Please sign in to comment.