html`<html>` is null
tomlarkworthy opened this issue · 2 comments
tomlarkworthy commented
Also html<head>
is null
Also html<body>
is null
(I was trying to make a full webpage with this).
clarkevans commented
Also be on the lookout for issues related to foster parenting.
mbostock commented
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