tor-browser

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

696.html (1321B)


      1 <!DOCTYPE html> 
      2 <html>
      3  <head>
      4    <title>ARIA 1.0 Test Case 696</title>
      5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      6  </head>
      7  <body>
      8    <h1>ARIA 1.0 Test Case 696</h1>
      9    
     10    <div id="TEST_ID_1">
     11      <div id="TEST_ID_2" style="visibility: hidden">TEST TEXT</div>
     12    </div>
     13    
     14    <h2>Description</h2>
     15    <p>The aria-live attribute is added to an element in the document by a script after the 
     16      onload event completes with the value="assertive" and the element has a child DOM 
     17      element node with text content that is hidden using CSS visibility="hidden". After 
     18      the aria-live attribute is added, the child DOM element node with text content has 
     19      the CSS display property changed to visibility="visible".</p>
     20    
     21    <script>  
     22 
     23      function showElement() {
     24        var node  = document.getElementById('TEST_ID_2');  
     25        node.setAttribute('style', 'visibility: visible');        
     26      }
     27 
     28      function addLiveRegion() {
     29        var node         = document.getElementById('TEST_ID_1');  
     30        node.setAttribute('aria-live', 'assertive');
     31        setTimeout(showElement,500);
     32      }
     33 
     34      function onload() {
     35        setTimeout(addLiveRegion,1000);
     36      }
     37     
     38      window.addEventListener('load', onload);
     39    </script>
     40  </body>
     41  
     42 </html>