editor/libeditor/base/crashtests/633709.xhtml

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:bc659a6e8152
1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
2
3 <body><div contenteditable="true"></div><div><input id="i"><div></div></input></div></body>
4
5 <script id="s">
6 <![CDATA[
7
8 function boom()
9 {
10 document.getElementById("i").focus();
11
12 try { document.execCommand("stylewithcss", false, "true") } catch(e) { }
13 try { document.execCommand("inserthtml", false, "<x>X</x>"); } catch(e) { }
14 try { document.execCommand("underline", false, null); } catch(e) { }
15 try { document.execCommand("justifyfull", false, null); } catch(e) { }
16 try { document.execCommand("underline", false, null); } catch(e) { }
17 try { document.execCommand("insertParagraph", false, null); } catch(e) { }
18 try { document.execCommand("delete", false, null); } catch(e) { }
19
20 try { document.execCommand("stylewithcss", false, "false") } catch(e) { }
21 try { document.execCommand("inserthtml", false, "<x>X</x>"); } catch(e) { }
22 try { document.execCommand("underline", false, null); } catch(e) { }
23 try { document.execCommand("justifyfull", false, null); } catch(e) { }
24 try { document.execCommand("underline", false, null); } catch(e) { }
25 try { document.execCommand("insertParagraph", false, null); } catch(e) { }
26 try { document.execCommand("delete", false, null); } catch(e) { }
27
28 document.documentElement.removeAttribute("class");
29 }
30
31 setTimeout(boom, 10);
32
33 ]]>
34 </script>
35
36 </html>

mercurial