aboutsummaryrefslogtreecommitdiff
path: root/lib/docx
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2025-05-28 19:53:26 +0100
committerMichael Williamson <mike@zwobble.org>2025-05-28 19:53:26 +0100
commit5896154e69430a67a758864576c5eda8796f152a (patch)
tree111472a1940ad0dd6e43b4347624ad7bfc535a10 /lib/docx
parenta193c98872cc8dcd800dd10af17a6fddd4897e4f (diff)
Ignore AlternateContent elements when there is no Fallback element
Diffstat (limited to 'lib/docx')
-rw-r--r--lib/docx/body-reader.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/docx/body-reader.js b/lib/docx/body-reader.js
index e78c2c4..93144c3 100644
--- a/lib/docx/body-reader.js
+++ b/lib/docx/body-reader.js
@@ -381,7 +381,7 @@ function BodyReader(options) {
},
"mc:AlternateContent": function(element) {
- return readChildElements(element.first("mc:Fallback"));
+ return readChildElements(element.firstOrEmpty("mc:Fallback"));
},
"w:sdt": function(element) {