blob: 6faa05ffece5bc61e94c6a4f11d28ccc40b131be [file] [log] [blame] [edit]
<!DOCTYPE html>
<meta charset="utf-8">
<title>The container node of the dialog element should be connected to a document.</title>
<link rel="author" title="Peng Zhou" href="mailto:zhoupeng.1996@bytedance.com">
<!-- This test passes if it does not crash. -->
<div id="target"></div>
<dialog open>Dialog</dialog>
<script>
const dialog = document.querySelector('dialog');
const node = document.createElement('div');
node.appendChild(dialog);
document.getElementById('target').appendChild(node);
</script>