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

XFA -- Add attributes and children in XFAObject

- in order to evaluate SOM expressions nodes and their attributes must be checked in the same order as in the xml;
 - add an object XFAObjectArray with a parameter max to handle multiple children with the same name.
This commit is contained in:
Calixte Denizet 2021-02-03 18:55:56 +01:00
parent 86a4ba55c5
commit 7e0554afe2
3 changed files with 105 additions and 28 deletions

View file

@ -19,6 +19,7 @@ import {
$nodeName,
$onChildCheck,
XFAObject,
XFAObjectArray,
} from "./xfa_object.js";
const XDP_NS_ID = NamespaceIds.xdp.id;
@ -32,7 +33,7 @@ class Xdp extends XFAObject {
this.connectionSet = null;
this.datasets = null;
this.localeSet = null;
this.stylesheet = [];
this.stylesheet = new XFAObjectArray();
this.template = null;
}