tor-browser

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

comp_labeledby_non_standard.html (1376B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4  <title>Name Comp: aria-labeledby (non-standard)</title>
      5  <script src="/resources/testharness.js"></script>
      6  <script src="/resources/testharnessreport.js"></script>
      7  <script src="/resources/testdriver.js"></script>
      8  <script src="/resources/testdriver-vendor.js"></script>
      9  <script src="/resources/testdriver-actions.js"></script>
     10  <script src="/wai-aria/scripts/aria-utils.js"></script>
     11 </head>
     12 <body>
     13 
     14 <p>Tests that the non-standard (misspelled) attribute name <code>aria-labeledby</code> is not supported.</p>
     15 
     16 <h2>Tests for <code>aria-labeledby</code></h2>
     17 
     18 <div role="group" aria-labeledby="h" class="ex" data-expectedlabel="" data-testname="div group with aria-labeledby">
     19  <h2 id="h">first heading</h2>
     20  <p>text inside div group</p>
     21 </div>
     22 
     23 <div role="group" aria-label="self label" id="g2" aria-labeledby="g2 h2" class="ex" data-expectedlabel="self label" data-testname="div group with aria-label and aria-labeledby">
     24  <h2 id="h2">+ first heading</h2>
     25  <p>text inside div group</p>
     26 </div>
     27 
     28 <div role="group" aria-labeledby="h2" aria-labelledby="p3" class="ex" data-expectedlabel="text inside div group" data-testname="div group with aria-labeledby and aria-labelledby">
     29  <h2 id="h3">+ first heading</h2>
     30  <p id="p3">text inside div group</p>
     31 </div>
     32 
     33 <script>
     34 AriaUtils.verifyLabelsBySelector(".ex");
     35 </script>
     36 </body>
     37 </html>