summaryrefslogtreecommitdiff
path: root/lib/docx
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-12-05 19:23:58 +0000
committerMichael Williamson <mike@zwobble.org>2026-12-05 19:23:58 +0000
commit2fe97dd468faa0d89cd6069bd0ba3b08c38e362e (patch)
tree57f48a831f4c34fc45c5a18994007d8713393819 /lib/docx
parent39c18eb51cf1a0156b5e09ef2d68b5dee6f0680e (diff)
Revert "Handle main document part without a root element"
This reverts commit 39c18eb51cf1a0156b5e09ef2d68b5dee6f0680e.
Diffstat (limited to 'lib/docx')
-rw-r--r--lib/docx/docx-reader.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/docx/docx-reader.js b/lib/docx/docx-reader.js
index 9bca76b..f343dae 100644
--- a/lib/docx/docx-reader.js
+++ b/lib/docx/docx-reader.js
@@ -74,10 +74,6 @@ function read(docxFile, input, options) {
};
}).then(function(result) {
return readXmlFileWithBody(result.partPaths.mainDocument, result, function(bodyReader, xml) {
- if (xml === null) {
- throw new Error("Main document part is missing root element. Are you sure this is a valid .docx file?");
- }
-
return result.notes.flatMap(function(notes) {
return result.comments.flatMap(function(comments) {
var reader = new DocumentXmlReader({