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

XFA - Don't bind a form node with an empty value when the data node doesn't exist

This commit is contained in:
Calixte Denizet 2021-06-06 17:59:01 +02:00
parent 2b63d97b9d
commit 112645ea3d
2 changed files with 64 additions and 0 deletions

View file

@ -577,6 +577,10 @@ class Binder {
// what we've in template.
match = new XmlObject(dataNode[$namespaceId], child.name);
dataNode[$appendChild](match);
// Don't bind the value in newly created node because it's empty.
this._bindElement(child, match);
continue;
}
match = [match];
}