summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/interactive-elements/the-details-element/nested-details-crash.html
blob: f3e821a950588d6b374c4338c5ab89e0f8d9f0d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!doctype HTML>
<link rel=author href="mailto:vmpstr@chromium.org">
<link rel=help href="https://crbug.com/1270206">

<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();'>