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