679.html (1110B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>ARIA 1.0 Test Case 679</title> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6 </head> 7 <body> 8 <h1>ARIA 1.0 Test Case 679</h1> 9 10 <div aria-live="polite" > 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 18 <p>An element with an aria-live attribute is defined in markup with the value="polite" which has a child 19 DOM element node with text content that is hidden using CSS visibility="hidden". 20 After the onload event completes a child DOM element node with text content has the 21 CSS dsiplay property changed to visibility="visible".</p> 22 23 <script> 24 25 function showElement() { 26 var node = document.getElementById('TEST_ID'); 27 node.style.visibility = 'visible'; 28 } 29 30 function onload() { 31 setTimeout(showElement,1000); 32 } 33 34 window.addEventListener('load', onload); 35 </script> 36 </body> 37 38 </html>