675.html (958B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>ARIA 1.0 Test Case 675</title> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6 </head> 7 <body> 8 <h1>ARIA 1.0 Test Case 675</h1> 9 10 <div id="TEST_ID"> 11 </div> 12 13 <h2>Description</h2> 14 <p>An element without an aria-live attribute is defined in markup. 15 After the onload event completes an aria-live attribute with the 16 value 'assertive' is added to the element and a child DOM text 17 node is added to the element.</p> 18 19 <script> 20 21 function addLiveRegion() { 22 var node = document.getElementById('TEST_ID'); 23 node.setAttribute('aria-live', 'assertive'); 24 var text_node = document.createTextNode('TEST TEXT'); 25 node.appendChild(text_node); 26 } 27 28 function onload() { 29 setTimeout(addLiveRegion,1000); 30 } 31 32 window.addEventListener('load', onload); 33 </script> 34 </body> 35 36 </html>