summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/inserthtml-indent-delete-when-input-element-in-editing-host-has-focus.html
blob: ff1eebe0413b679534176f96c50126243df72b86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test for bug 636074 of Mozilla</title>
<script>
function boom()
{
  document.getElementById("i").focus();
  document.documentElement.contentEditable = "true";
  document.execCommand("inserthtml", false, "<table>");
  document.execCommand("indent", false, null);
  document.execCommand("delete", false, null);
}
</script>
</head>
<body onload="boom();"><input id="i"></body>
</html>