diff --git a/src/core/xfa/xfa_object.js b/src/core/xfa/xfa_object.js index f0dbaa0e8b027..8e55e20c9b8b5 100644 --- a/src/core/xfa/xfa_object.js +++ b/src/core/xfa/xfa_object.js @@ -745,6 +745,10 @@ class XFAAttribute { return true; } + [$getDataValue]() { + return this[$content].trim(); + } + [$setValue](value) { value = value.value || ""; this[$content] = value.toString(); diff --git a/test/pdfs/issue13748.pdf.link b/test/pdfs/issue13748.pdf.link new file mode 100644 index 0000000000000..4f4f6bdf1bc60 --- /dev/null +++ b/test/pdfs/issue13748.pdf.link @@ -0,0 +1 @@ +https://github.com/mozilla/pdf.js/files/6849364/IFT-3R.7._v1-1E.pdf diff --git a/test/test_manifest.json b/test/test_manifest.json index 445c97dabff39..5ff77b568abe6 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -1347,6 +1347,15 @@ "link": false, "type": "eq" }, + { "id": "issue13748", + "file": "pdfs/issue13748.pdf", + "md5": "de0e4dde2890b9ff145a3184831bae02", + "link": true, + "rounds": 1, + "lastPage": 1, + "enableXfa": true, + "type": "eq" + }, { "id": "issue13756", "file": "pdfs/issue13756.pdf", "md5": "67040c6df3b5039fcbc81bf63b7c7f98",