1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #13394 from calixteman/xml_parser

Handle PI with no value in xml parser
This commit is contained in:
calixteman 2021-05-18 11:14:48 +02:00 committed by GitHub
commit faf6b10939
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 1 deletions

View file

@ -145,6 +145,7 @@ class XMLParserBase {
pos < s.length &&
!isWhitespace(s, pos) &&
s[pos] !== ">" &&
s[pos] !== "?" &&
s[pos] !== "/"
) {
++pos;