tor-browser

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

fieldset-willvalidate.html (828B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Forms</title>
      5  <script src="/resources/testharness.js"></script>
      6  <script src="/resources/testharnessreport.js"></script>
      7 </head>
      8 <body>
      9  <p>
     10    <h3>FieldSet_willValidate</h3>
     11  </p>
     12 
     13  <hr>
     14 
     15  <div id="log"></div>
     16 
     17  <form method="post"
     18      enctype="application/x-www-form-urlencoded"
     19      action=""
     20      id="input_form">
     21    <fieldset id="input_field">
     22     </fieldset>
     23  </form>
     24  <script>
     25 
     26    var field = document.getElementById("input_field");
     27 
     28    if (typeof(field.willValidate) == "boolean") {
     29      test(function() {
     30        assert_equals(field.willValidate, false, "willValidate attribute is not correct.");
     31      });
     32    } else {
     33      test(function() {
     34        assert_unreached("willValidate attribute is not exist.");
     35      });
     36    }
     37 
     38  </script>
     39 
     40 </body>
     41 </html>