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-style-element-in-disconnected-shadow-crash.html - WPT Dashboard Interop Dashboard
<!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>