tor-browser

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

disabled-002.xhtml (1115B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!DOCTYPE html>
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 <head>
      5  <title>File input descendants of disabled fieldsets</title>
      6  <link rel="author" title="Chris Rebert" href="http://chrisrebert.com" />
      7  <link rel="help" href="https://html.spec.whatwg.org/multipage/#attr-fieldset-disabled" />
      8  <script src="/resources/testharness.js"></script>
      9  <script src="/resources/testharnessreport.js"></script>
     10 </head>
     11 <body>
     12  <div id="log"></div>
     13  <form>
     14    <fieldset id="fs" disabled="disabled">
     15      <input id="myfile" type="file" />
     16    </fieldset>
     17  </form>
     18  <script>
     19    test(function () {
     20      assert_true(document.getElementById('fs').disabled, "disabled fieldset should be disabled");
     21      assert_false(document.getElementById('myfile').willValidate, "form control descendant of disabled fieldset that is not also a descendant of a legend should be disabled");
     22    }, "A file input without a disabled attribute that is a descendant of a disabled fieldset should be disabled (modulo legend-related complications that don't apply here)");
     23  </script>
     24 </body>
     25 </html>