Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<title>Modifying a style element in a disconnected shadow tree should not crash</title>
</head>
<body>
<script>
let d = document.createElement('div');
let s = d.attachShadow({mode: "open"});
let s2 = document.createElement('style');
s.appendChild(s2);
s2.textContent = "lol";
</script>
</body>
</html>