layout/reftests/bugs/572598-1.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html contenteditable="true" class="reftest-wait">
michael@0 3 <head>
michael@0 4 <script>
michael@0 5
michael@0 6 function boom()
michael@0 7 {
michael@0 8 document.getElementById("i").select();
michael@0 9 document.execCommand("forecolor", false, "green");
michael@0 10 try { document.execCommand("insertunorderedlist", false, null); } catch(e){ }
michael@0 11 document.execCommand("selectAll", false, null);
michael@0 12 document.execCommand("contentReadOnly", false, null);
michael@0 13 document.getElementById("d").contentEditable = "true";
michael@0 14 document.getElementById("d").style.position = "absolute";
michael@0 15 document.documentElement.focus();
michael@0 16 document.execCommand("superscript", false, null);
michael@0 17 window.getSelection().removeAllRanges();
michael@0 18 document.documentElement.removeAttribute("class");
michael@0 19 }
michael@0 20
michael@0 21 </script>
michael@0 22 </head>
michael@0 23
michael@0 24 <body onload="boom();" contenteditable="false"><div id="d"><input id="i"></div></body>
michael@0 25
michael@0 26 </html>

mercurial