diff --git a/src/request.js b/src/request.js index f39c969d..979fdae0 100644 --- a/src/request.js +++ b/src/request.js @@ -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);