dialog-insert-disconnected-node-crash.html (513B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>The container node of the dialog element should be connected to a document.</title> 4 <link rel="author" title="Peng Zhou" href="mailto:zhoupeng.1996@bytedance.com"> 5 6 <!-- This test passes if it does not crash. --> 7 8 <div id="target"></div> 9 <dialog open>Dialog</dialog> 10 11 <script> 12 const dialog = document.querySelector('dialog'); 13 const node = document.createElement('div'); 14 node.appendChild(dialog); 15 document.getElementById('target').appendChild(node); 16 </script>