tor-browser

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

693.html (1738B)


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