Jian130 / x2js

Automatically exported from code.google.com/p/x2js
0 stars 0 forks source link

Catch undefined input #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make unsuccessful AJAX call
2. Feed resulting 'undefined' into x2js (expecting xml)

What is the expected output? What do you see instead?
Expect x2js to do nothing, get cryptic error

What version of the product are you using? On what operating system and
browser version?
v 1.0.11
Firefox, Chrome

Please provide any additional information below.
Suggest to add in xml2json.js, line 249:
        if (xmlDocStr === undefined) {
            xmlDocStr = "";
        }

Original issue reported on code.google.com by webmas...@thamnos.de on 25 Jul 2013 at 9:23

GoogleCodeExporter commented 9 years ago
Thanks for a report. Preparing to the next version.

Original comment by abdulla....@gmail.com on 9 Aug 2013 at 9:59

GoogleCodeExporter commented 9 years ago
Fixed in 1.1.0

Original comment by abdulla....@gmail.com on 12 Aug 2013 at 1:53

GoogleCodeExporter commented 9 years ago

Original comment by abdulla....@gmail.com on 29 Sep 2013 at 3:14