tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

search_input.html (1234B)


      1 <!DOCTYPE html>
      2 <html>
      3 
      4  <head>
      5    <title>Search Input</title>
      6     <meta name=viewport content="width=device-width, maximum-scale=1.0, user-scalable=no" />
      7     <link rel="author" title="Fabrice Clari" href="mailto:f.clari@inno-group.com">
      8     <link rel="author" title="Dimitri Bocquet" href="mailto:Dimitri.Bocquet@mosquito-fp7.eu">
      9     <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-input-element">
     10     <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-input-type">
     11     <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-input-placeholder">
     12   <script src="/resources/testharness.js"></script>
     13    <script src="/resources/testharnessreport.js"></script>
     14  </head>
     15 
     16  <body>
     17 
     18 
     19      <h1>Search Input</h1>
     20      <input type="search" style="display:none" placeholder="Search..." />
     21 
     22    <div id="log">
     23    </div>
     24 
     25  <script type="text/javascript">
     26 
     27 
     28    test(function() {assert_equals(document.getElementsByTagName("input")[0].type, "search")}, "search type support on input element");
     29    test(function() {assert_equals(document.getElementsByTagName("input")[0].placeholder, "Search...")}, "placeholder attribute support on input element");
     30 
     31  </script>
     32 
     33  </body>
     34 
     35 </html>