Newer
Older
minerva / Tests / LibWeb / Text / input / DOM / shadow-root-boundary-of-inserted-node-is-traversed.html
@minerva minerva on 13 Jul 457 bytes Initial commit
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
    test(() => {
        const div = document.createElement("div");
        const shadowRoot = div.attachShadow({ mode: "closed" });

        const script = document.createElement("script");
        script.innerText = "println('Hello from script in the shadow root of the just inserted div!')";
        shadowRoot.appendChild(script);

        document.body.appendChild(div);
    });
</script>