tor-browser

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

valueMode-weekmonth.html (1285B)


      1 <!DOCTYPE html>
      2 <meta charset=utf-8>
      3 <title>Input element value mode</title>
      4 <link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <div id="log"></div>
      8 <script>
      9 // MODE DEFAULT
     10 test(function () {
     11  var input = document.createElement("input");
     12  input.type = "month";
     13  input.value = "foo\r\r\n\n\0";
     14  assert_equals(input.value, "");
     15 }, "value IDL attribute of input type month without value attribute");
     16 test(function() {
     17  var input = document.createElement("input");
     18  input.type = "month";
     19  input.setAttribute("value", "bar");
     20  input.value = "foo\r\r\n\n\0";
     21  assert_equals(input.value, "");
     22 }, "value IDL attribute of input type month with value attribute");
     23 
     24 test(function () {
     25  var input = document.createElement("input");
     26  input.type = "week";
     27  input.value = "foo\r\r\n\n\0";
     28  assert_equals(input.value, "");
     29 }, "value IDL attribute of input type week without value attribute");
     30 test(function() {
     31  var input = document.createElement("input");
     32  input.type = "week";
     33  input.setAttribute("value", "bar");
     34  input.value = "foo\r\r\n\n\0";
     35  assert_equals(input.value, "");
     36 }, "value IDL attribute of input type week with value attribute");
     37 </script>