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.

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

mercurial