You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: