editor/libeditor/html/crashtests/574558-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/libeditor/html/crashtests/574558-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,15 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml"><head><script>
     1.5 +<![CDATA[
     1.6 +
     1.7 +function boom()
     1.8 +{
     1.9 +  document.execCommand("selectAll", false, null);
    1.10 +  document.execCommand("selectAll", false, null);
    1.11 +  document.execCommand("inserthtml", false, "<span><div>");
    1.12 +  var textarea = document.getElementById("textarea");
    1.13 +  var span = document.createElementNS("http://www.w3.org/1999/xhtml", "span");
    1.14 +  textarea.appendChild(span);
    1.15 +}
    1.16 +
    1.17 +]]>
    1.18 +</script></head><div contenteditable="true"></div><body onload="boom();"><textarea id="textarea">f</textarea></body></html>

mercurial