summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/769967.xhtml
blob: 724f6b89931aa928cdd03b510acaaf9df78ed0ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html xmlns="http://www.w3.org/1999/xhtml" contenteditable="true" style="-moz-user-select: all;"><sub>x</sub><script>
function boom()
{
  window.getSelection().removeAllRanges();
  var r = document.createRange();
  r.setStart(document.documentElement, 0);
  r.setEnd(document.documentElement, 0);
  window.getSelection().addRange(r);

  document.execCommand("subscript", false, null);
  document.execCommand("insertText", false, "y");
}

window.addEventListener("load", boom, false);

</script></html>