tor-browser

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

710.html (1591B)


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