Parcourir la source

Update xml.js

Lutz Roeder il y a 7 mois
Parent
commit
71b40a671b
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      source/xml.js

+ 2 - 2
source/xml.js

@@ -190,7 +190,7 @@ xml.TextReader = class {
                                             this._error(`Invalid namespace prefix '${entry.localName}'`, entry.position);
                                         }
                                         if (this._version === 0 && value.length === 0) {
-                                            this._error("Invalid namespace declaration'", entry.position);
+                                            this._error('Invalid namespace declaration', entry.position);
                                         }
                                         namespaces.set(entry.localName, value);
                                     }
@@ -720,7 +720,7 @@ xml.TextReader = class {
             return '';
         }
         const code = c.codePointAt(0);
-        if ((!this._charRegExp.test(c) && (code < 0x10000 || c > 0x10FFFF))) {
+        if ((!this._charRegExp.test(c) && (code < 0x10000 || code > 0x10FFFF))) {
             this._unexpected();
         }
         this._next();