editor/libeditor/html/crashtests/769967.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/libeditor/html/crashtests/769967.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml" contenteditable="true" style="-moz-user-select: all;"><sub>x</sub><script>
     1.5 +function boom()
     1.6 +{
     1.7 +  window.getSelection().removeAllRanges();
     1.8 +  var r = document.createRange();
     1.9 +  r.setStart(document.documentElement, 0);
    1.10 +  r.setEnd(document.documentElement, 0);
    1.11 +  window.getSelection().addRange(r);
    1.12 +
    1.13 +  document.execCommand("subscript", false, null);
    1.14 +  document.execCommand("insertText", false, "y");
    1.15 +}
    1.16 +
    1.17 +window.addEventListener("load", boom, false);
    1.18 +
    1.19 +</script></html>

mercurial