fix: attributes on <body> not being rendered (#1648)

This commit is contained in:
Marvin Hagemeister
2023-08-16 22:26:23 +02:00
committed by GitHub
parent 09dc65604b
commit 9f97e3423c
3 changed files with 20 additions and 4 deletions
+5 -1
View File
@@ -67,6 +67,7 @@ export function renderOuterDocument(
docHead,
renderedHtmlTag,
docTitle,
docBody,
docHeadNodes,
headVNodes,
} = state;
@@ -90,7 +91,10 @@ export function renderOuterDocument(
h("link", { rel: "modulepreload", href: src })
),
headVNodes,
h("body", { dangerouslySetInnerHTML: { __html: opts.bodyHtml } }),
h("body", {
...docBody,
dangerouslySetInnerHTML: { __html: opts.bodyHtml },
}),
),
);