Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
3 <body><div contenteditable="true"></div><div><input id="i"><div></div></input></div></body>
5 <script id="s">
6 <![CDATA[
8 function boom()
9 {
10 document.getElementById("i").focus();
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) { }
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) { }
28 document.documentElement.removeAttribute("class");
29 }
31 setTimeout(boom, 10);
33 ]]>
34 </script>
36 </html>