Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch undefined input #11

Closed
GoogleCodeExporter opened this issue Nov 9, 2015 · 3 comments
Closed

Catch undefined input #11

GoogleCodeExporter opened this issue Nov 9, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Thanks for a report. Preparing to the next version.

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

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Fixed in 1.1.0

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant