671.html (858B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>ARIA 1.0 Test Case 671</title> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6 </head> 7 <body> 8 <h1>ARIA 1.0 Test Case 671</h1> 9 10 <ul role="listbox"> 11 <li role="option" aria-selected="false" 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 NOT equal 18 to "true" or the attribute is undefined.</p> 19 20 21 <script> 22 23 function setFocus() { 24 var test_node = document.getElementById('ID_OPTION'); 25 test_node.focus(); 26 } 27 28 window.addEventListener('load', setFocus); 29 </script> 30 </body> 31 32 </html>