summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/420439.html
blob: e1303307da07fcccf9bb77e2acf719d3d7db2f81 (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
27
28
29
30
<html>
<head>
<script type="text/javascript">

function boom()
{
  function x()
  {
    document.removeEventListener("DOMAttrModified", x, false);
    document.execCommand("backcolor", false, "green");
  }

  document.getElementById("td").focus();

  document.addEventListener("DOMAttrModified", x, false);
  try { 
    document.execCommand("subscript", false, null); 
  } catch(e) { 
  }
  document.removeEventListener("DOMAttrModified", x, false);
}

</script>
</head>

<body contenteditable="true" onload="setTimeout(boom, 30);">
<table><tbody contenteditable="false"><tr><td contenteditable="true" id="td"></td></tr></tbody></table>
</body>

</html>