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