editor/libeditor/base/crashtests/766845.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/libeditor/base/crashtests/766845.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml">
     1.5 +<head>
     1.6 +<script>
     1.7 +<![CDATA[
     1.8 +
     1.9 +function boom()
    1.10 +{
    1.11 +  window.getSelection().removeAllRanges();
    1.12 +  var r1 = document.createRange();
    1.13 +  r1.setStart(document.body, 0);
    1.14 +  r1.setEnd  (document.body, 1);
    1.15 +  window.getSelection().addRange(r1);
    1.16 +  var r2 = document.createRange();
    1.17 +  r2.setStart(document.body, 1);
    1.18 +  r2.setEnd  (document.body, 2);
    1.19 +  window.getSelection().addRange(r2);
    1.20 +  if (document.queryCommandEnabled("inserthtml"))
    1.21 +    document.execCommand("inserthtml", false, "1");
    1.22 +}
    1.23 +
    1.24 +]]>
    1.25 +</script>
    1.26 +</head>
    1.27 +
    1.28 +<body contenteditable="true" onload="boom();"><div></div><div></div></body>
    1.29 +
    1.30 +</html>

mercurial