Can't figure out to add head tag and have it parsed
macdonst opened this issue · 0 comments
macdonst commented
If I try to parse the following string:
body: html`<!DOCTYPE html>
<html lang="en" class="h-full">
<head></head>
<body>
<begin-layout></begin-layout>
</body>
</html>`
the error I get is:
TypeError
Cannot read properties of undefined (reading '1')
If I remove the DOCTYPE
body: html`<html lang="en" class="h-full">
<head></head>
<body>
<begin-layout></begin-layout>
</body>
</html>`
the error is:
TypeError
node.childNodes is not iterable
Then if I remove the tag and the page renders:
body: html`<html lang="en" class="h-full">
<body>
<begin-layout></begin-layout>
</body>
</html>`
Any ideas?