1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Refactor some xfa*** getters in document.js

- it's a follow-up of PR #14735.
This commit is contained in:
Calixte Denizet 2022-04-01 12:55:28 +02:00
parent 38e9a46a85
commit f4fcb59a5e
2 changed files with 43 additions and 52 deletions

View file

@ -52,7 +52,7 @@ class DatasetReader {
} else {
const parser = new DatasetXMLParser({ hasAttributes: true });
try {
parser.parseFromString(data.xdp);
parser.parseFromString(data["xdp:xdp"]);
} catch (_) {}
this.node = parser.node;
}