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; }