tor-browser

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

681.html (951B)


      1 <!DOCTYPE html> 
      2 <html>
      3  <head>
      4    <title>ARIA 1.0 Test Case 681</title>
      5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      6  </head>
      7  <body>
      8    <h1>ARIA 1.0 Test Case 681</h1>
      9    
     10    <div id="TEST_ID" aria-live="polite">
     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 the onload 
     15      event with the value="polite". After the onload event completes a child DOM text node is added 
     16      to the element with the aria-live attribute.</p>
     17    
     18    <script>  
     19  
     20      function addChildTextNode() {
     21        var node = document.getElementById('TEST_ID');  
     22        var text_node = document.createTextNode("TEST TEXT");        
     23        node.appendChild(text_node);
     24      }
     25     
     26      function onload() {
     27        setTimeout(addChildTextNode,1000);
     28      }
     29     
     30      window.addEventListener('load', onload);
     31    </script>
     32  </body>
     33  
     34 </html>