Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /shadow-dom/crashtests/modify-sibling-of-shadowroot-after-attach.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<div id="shadowroot">
<span id="insideshadowroot"></span>
</div>
<script>
onload = _ => {
document.body.offsetTop;
insideshadowroot.innerText = "Changed";
shadowroot.attachShadow({mode: "open"});
document.body.appendChild(document.createElement("div"));
}
</script>