Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /dom/nodes/crashtests/adopt-shadow-host-with-live-collection.html - WPT Dashboard Interop Dashboard
<!doctype html>
<script>
const template = document.createElement("template");
template.innerHTML = "<div><span></span></div>";
const host = template.content.firstElementChild;
host.attachShadow({ mode: "open" });
host.getElementsByTagName("span").length;
document.documentElement.append(host);
</script>