editor/libeditor/html/crashtests/766387.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/libeditor/html/crashtests/766387.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<head>
     1.7 +<script>
     1.8 +
     1.9 +function boom()
    1.10 +{
    1.11 +  window.getSelection().removeAllRanges();
    1.12 +  var r = document.createRange();
    1.13 +  r.setStart(document.getElementById("x"), 1);
    1.14 +  r.setEnd(document.getElementById("y"), 0);
    1.15 +  window.getSelection().addRange(r);
    1.16 +  document.execCommand("insertorderedlist", false, null);
    1.17 +}
    1.18 +
    1.19 +</script>
    1.20 +</head>
    1.21 +
    1.22 +<body onload="boom();"><div id="x" contenteditable="true">a</div><div id="y" contenteditable="true"></div></body>
    1.23 +</html>

mercurial