diff options
| author | Michael Williamson <mike@zwobble.org> | 2025-05-28 19:53:26 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2025-05-28 19:53:26 +0100 |
| commit | 5896154e69430a67a758864576c5eda8796f152a (patch) | |
| tree | 111472a1940ad0dd6e43b4347624ad7bfc535a10 /lib/docx | |
| parent | a193c98872cc8dcd800dd10af17a6fddd4897e4f (diff) | |
Ignore AlternateContent elements when there is no Fallback element
Diffstat (limited to 'lib/docx')
| -rw-r--r-- | lib/docx/body-reader.js | 2 |
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) { |
