tor-browser

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

focusable-legend-sibling-manual.html (503B)


      1 <!doctype html>
      2 <title>Focusable legend 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 <fieldset>
      8 <legend accesskey=a>first legend</legend>
      9 <legend tabindex=0 onfocus="fail('sibling legend was focused')">second legend</legend>
     10 </fieldset>
     11 <script>
     12 onkeyup = e => {
     13   if (e.keyCode === 65) {
     14     pass();
     15   }
     16 }
     17 </script>