editor/libeditor/html/crashtests/682650-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/libeditor/html/crashtests/682650-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<head>
     1.7 +<script>
     1.8 +
     1.9 +function repeatChar(s, n)
    1.10 +{
    1.11 +  while (s.length < n)
    1.12 +    s += s;
    1.13 +  return s.substr(0, n);
    1.14 +}
    1.15 +
    1.16 +function boom()
    1.17 +{
    1.18 +  document.documentElement.contentEditable = "true";
    1.19 +  document.execCommand("inserthtml", false, "<button><\/button>");
    1.20 +  document.execCommand("inserthtml", false, repeatChar("i", 34646));
    1.21 +  document.execCommand("contentReadOnly", false, null);
    1.22 +  document.execCommand("removeformat", false, null);
    1.23 +  document.execCommand("hilitecolor", false, "red");
    1.24 +  document.execCommand("inserthtml", false, "a");
    1.25 +  document.execCommand("delete", false, null);
    1.26 +}
    1.27 +
    1.28 +</script>
    1.29 +</head>
    1.30 +
    1.31 +<body onload="boom();"></body>
    1.32 +
    1.33 +</html>

mercurial