editor/reftests/input-text-notheme-onfocus-reframe.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 <head>
     4 	<title>bug 536421</title>
     5 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     6 <style>
     7 input { border:1px solid blue; }
     8 </style>
     9 </head>
    10 <body onload="doTest()">
    11   <input value="test" id="textbox" onfocus="triggerBug();" type="text">
    12   <script type="text/javascript">
    13     function finishTest()
    14     {
    15       document.documentElement.removeAttribute("class");
    16     }
    17     function triggerBug()
    18     {
    19       var t = document.getElementById("textbox");
    20       t.style.display = "none";
    21       document.body.offsetWidth;
    22       t.style.display = "";
    23       finishTest();
    24     }
    25     function doTest()
    26     {
    27       var t = document.getElementById("textbox");
    28       t.focus();
    29     }
    30   </script>
    31 </body>
    32 </html>

mercurial