layout/reftests/css-placeholder/textarea/placeholder-focus-ref.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <!DOCTYPE html>
     2 <html class='reftest-wait'>
     3   <link rel='stylesheet' type='text/css' href='style.css'>
     4   <script>
     5     function loadHandler()
     6     {
     7       document.getElementById('t').focus();
     8     }
     9     function focusHandler()
    10     {
    11       document.documentElement.className = '';
    12     }
    13   </script>
    14   <body onload='loadHandler();'>
    15     <textarea id='t' class='ref' onfocus='focusHandler();'>foo</textarea>
    16   </body>
    17 </html>

mercurial