Skip to content

Commit

Permalink
fix: querySelector not implemented by xmldom
Browse files Browse the repository at this point in the history
  • Loading branch information
mattblickem-evoluno authored and jcbrand committed Apr 7, 2024
1 parent 607b9e2 commit fd5916e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Request {
log.debug('Got responseText but no responseXML; attempting to parse it with DOMParser...');
node = new DOMParser().parseFromString(this.xhr.responseText, 'application/xml').documentElement;

const parserError = node?.querySelector('parsererror');
const parserError = node?.getElementsByTagName('parsererror').item(0);
if (!node || parserError) {
if (parserError) {
log.error('invalid response received: ' + parserError.textContent);
Expand Down

0 comments on commit fd5916e

Please sign in to comment.