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/slots-in-v0-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>Adding/removing slots should not cause a crash</title>
<div id="host"></div>
<script>
let shadowRoot = host.attachShadow({mode: 'open'});
let slot1 = document.createElement('slot');
shadowRoot.appendChild(slot1);
document.body.appendChild(slot1);
let slot2 = document.createElement('slot');
shadowRoot.appendChild(slot2);
</script>