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

XFA - CDATA can be xml so parse it when required

This commit is contained in:
Calixte Denizet 2021-06-06 16:28:22 +02:00
parent 1775d5eeb7
commit 5dc7f4ade8
4 changed files with 52 additions and 0 deletions

View file

@ -51,6 +51,7 @@ const $hasSettableValue = Symbol();
const $ids = Symbol();
const $indexOf = Symbol();
const $insertAt = Symbol();
const $isCDATAXml = Symbol();
const $isDataValue = Symbol();
const $isDescendent = Symbol();
const $isTransparent = Symbol();
@ -148,6 +149,10 @@ class XFAObject {
return false;
}
[$isCDATAXml]() {
return false;
}
[$setId](ids) {
if (this.id && this[$namespaceId] === NamespaceIds.template.id) {
ids.set(this.id, this);
@ -970,6 +975,7 @@ export {
$ids,
$indexOf,
$insertAt,
$isCDATAXml,
$isDataValue,
$isDescendent,
$isTransparent,