Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/interactive-elements/the-details-element/nested-details-crash.html - WPT Dashboard Interop Dashboard
<!doctype HTML>
<link rel=author href="mailto:vmpstr@chromium.org">
<script type="text/javascript">
function eventHandler1() {
document.getElementById('target').insertAdjacentText("afterEnd", "");
document.getElementById('target').focus();
document.getElementById('target').hidden = "true";
}
function operate() {
document.addEventListener('DOMNodeInsertedIntoDocument', eventHandler1, true);
}
function exec_event() {
event = new Event('DOMNodeInsertedIntoDocument')
document.dispatchEvent(event)
}
function go(){
operate();
exec_event();
}
</script>
<body onload="go();" contentEditable="true">
<details onselectstart='eventHandler2();'>
<dfn id='target' class=onload='eventHandler1();'>
<details id= onmsgesturehold='eventHandler2();'>