670.html (815B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>ARIA 1.0 Test Case 670</title> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6 </head> 7 <body> 8 <h1>ARIA 1.0 Test Case 670</h1> 9 10 <ul role="listbox"> 11 <li role="option" aria-selected="true" id="ID_OPTION" tabindex="0">Option 1</li> 12 <li role="option">Option 2</li> 13 </ul> 14 15 <h2>Description</h2> 16 <p>For an element with role role "option" which is a child of an element with 17 role "listbox", and the value of the "aria-selected" attribute is equal 18 to "true".</p> 19 20 <script> 21 22 function setFocus() { 23 var node = document.getElementById('ID_OPTION'); 24 node.focus(); 25 } 26 27 window.addEventListener('load', setFocus); 28 </script> 29 </body> 30 31 </html>