Skip to content

Commit

Permalink
fix(nitro/render): invalid html attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
i-udas committed Mar 1, 2024
1 parent fa79b86 commit a02776d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nuxt/src/core/runtime/nitro/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,9 @@ function joinAttrs (chunks: string[]) {

function renderHTMLDocument (html: NuxtRenderHTMLContext) {
return '<!DOCTYPE html>'
+ `<html${joinAttrs(html.htmlAttrs)}>`
+ `<html ${joinAttrs(html.htmlAttrs)}>`
+ `<head>${joinTags(html.head)}</head>`
+ `<body${joinAttrs(html.bodyAttrs)}>${joinTags(html.bodyPrepend)}${joinTags(html.body)}${joinTags(html.bodyAppend)}</body>`
+ `<body ${joinAttrs(html.bodyAttrs)}>${joinTags(html.bodyPrepend)}${joinTags(html.body)}${joinTags(html.bodyAppend)}</body>`
+ '</html>'
}

Expand Down

0 comments on commit a02776d

Please sign in to comment.