tor-browser

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

label-sibling-manual.html (548B)


      1 <!doctype html>
      2 <title>Label sibling</title>
      3 <script src=/resources/testharness.js></script>
      4 <script src=/resources/testharnessreport.js></script>
      5 <script src=../common/accesskey.js></script>
      6 <p>Press the access key combination for "a". <kbd></kbd></p>
      7 <input id=x onfocus="fail('input associated with the label was focused')">
      8 <fieldset>
      9 <legend accesskey=a>legend</legend>
     10 <label for=x onclick="fail('label received a click event')">label</label>
     11 </fieldset>
     12 <script>
     13 onkeyup = e => {
     14   if (e.keyCode === 65) {
     15     pass();
     16   }
     17 }
     18 </script>