observablehq/htl

html`<html>` is null

tomlarkworthy opened this issue · 2 comments

Also html<head> is null
Also html<body> is null

(I was trying to make a full webpage with this).

Also be on the lookout for issues related to foster parenting.

I think this probably should be the expected behavior given that it is compatible with how template elements behave:

const template = document.createElement("template");
template.innerHTML = "<body>";
template.content.firstChild; // null