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

Error in IE 11 with parsing AWS resposne #325

Open
gborcherds opened this issue May 7, 2018 · 2 comments · May be fixed by #486
Open

Error in IE 11 with parsing AWS resposne #325

gborcherds opened this issue May 7, 2018 · 2 comments · May be fixed by #486
Labels
bug IE Internet Explorer

Comments

@gborcherds
Copy link
Contributor

var s3Error = (new window.DOMParser()).parseFromString(request.response, "text/xml"); var errMsg = s3Error.firstChild.children[1].innerHTML;

These two lines of code are generating an error in IE11. I know that browser sucks, but I have to support it. Not sure if you can build a workaround for the DOMParser, but it says that the children is undefined. This is in all 4 places that it is used in the code.

@vrajroham vrajroham added the bug label May 14, 2018
@vrajroham
Copy link
Collaborator

@gborcherds Thanks for reporting. We will look into this.

@sbiastoch
Copy link

A very simple workaround is to use s3Error.firstChild.firstChild.firstChild.textContent. I tested it quickly in IE11 and latest Firefox and it seems to work.

sbiastoch added a commit to sbiastoch/vue-dropzone that referenced this issue Aug 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug IE Internet Explorer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants