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:
parent
2b63d97b9d
commit
112645ea3d
2 changed files with 64 additions and 0 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue