From 69e26ad3193a7a9187380a8e2cee691331fee5be Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Tue, 21 Jul 2026 16:04:24 +0200 Subject: [PATCH] Re-use the `NS_DATASETS` constant more in the `src/core/xfa/bind.js` file --- src/core/xfa/bind.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/xfa/bind.js b/src/core/xfa/bind.js index bbe3ab1de..d1a1fe10f 100644 --- a/src/core/xfa/bind.js +++ b/src/core/xfa/bind.js @@ -55,8 +55,7 @@ class Binder { constructor(root) { this.root = root; this.datasets = root.datasets; - this.data = - root.datasets?.data || new XmlObject(NamespaceIds.datasets.id, "data"); + this.data = root.datasets?.data || new XmlObject(NS_DATASETS, "data"); this.emptyMerge = this.data[$getChildren]().length === 0; this.root.form = this.form = root.template[$clone](); @@ -137,7 +136,7 @@ class Binder { } } if ( - dataNode[$namespaceId] === NamespaceIds.datasets.id && + dataNode[$namespaceId] === NS_DATASETS && dataNode[$nodeName] === "data" ) { break;