update dependency after merge from master

This commit is contained in:
Slawomir Jaranowski
2020-12-21 23:49:59 +01:00
parent a2731cf297
commit df02243d71
9 changed files with 225 additions and 71 deletions

View File

@ -21,7 +21,7 @@ DOMParser.prototype.parseFromString = function(source,mimeType){
defaultNSMap['']= 'http://www.w3.org/1999/xhtml';
}
defaultNSMap.xml = defaultNSMap.xml || 'http://www.w3.org/XML/1998/namespace';
if(source){
if(source && typeof source === 'string'){
sax.parse(source,defaultNSMap,entityMap);
}else{
sax.errorHandler.error("invalid doc source");