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