From 7d4edab92b6e3ea52c4cd7f67f53f70549aab72e Mon Sep 17 00:00:00 2001 From: thecodrr Date: Thu, 9 Dec 2021 00:36:16 +0500 Subject: [PATCH] fix: HTMLParser.createElement is not a function --- packages/core/utils/html-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("
"); - return typeof DOMParser === "undefined" ? doc : doc.body.firstElementChild; + return typeof DOMParser === "undefined" ? doc : doc; }