layout/reftests/bugs/262998-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 class="reftest-wait">
     3 <body onload="setTimeout(doTest,0);">
     5 <iframe id="edit"  style="display:none;" src=""></iframe>
     7 <script>
     8   var x=document.getElementById('edit');
     9   function doTest(){
    10     x.style.display='block';
    11     x.contentDocument.body.innerHTML="This is a test";
    12     x.contentDocument.designMode='on';
    13     x.contentDocument.execCommand("selectAll", false, "");
    14     x.contentDocument.execCommand("bold", false, "");
    15     x.contentDocument.execCommand("justifyCenter", false, "");
    16     x.contentWindow.getSelection().removeAllRanges();
    17     document.documentElement.className = "";
    18   }
    19 </script>
    20 </body>
    21 </html>

mercurial