Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: HTMLParser.createElement is not a function

thecodrr7d4edab92b6e
diff --git a/packages/core/utils/html-parser.js b/packages/core/utils/html-parser.js
index 4f05cf8a3..c449fa9f0 100644
--- a/packages/core/utils/html-parser.js
+++ b/packages/core/utils/html-parser.js
@@ -7,5 +7,5 @@ export const parseHTML =
export function getDummyDocument() {
const doc = parseHTML("<div></div>");
- return typeof DOMParser === "undefined" ? doc : doc.body.firstElementChild;
+ return typeof DOMParser === "undefined" ? doc : doc;
}