testcase-listbox-multiselectable-B.html (1905B)
1 <!DOCTYPE html> 2 <html><head> 3 <title>ARIA 1.0 Test Case: Listbox role with multiseclect</title> 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5 </head> 6 <body> 7 <h1>ARIA 1.0 Test Case: Listbox role with multiseclect</h1> 8 9 <div role="listbox" aria-multiselectable="true"> 10 <div role="option">Option 1</div> 11 <div role="option" aria-selected="true" tabindex="-1">Option 2 (test for selected)</div> 12 <div role="option" aria-selected="true" id="ID_TARGET" tabindex="0">Option 3 (test for selected)</div> 13 <div role="option">Option 4</div> 14 </div> 15 16 <h2>Description</h2> 17 <p>A DIV element with role role "listbox" has an aria-multiselect attribute set to "true". 18 Two of the four child "div" elements with the role "option" have the "aria-selected" attribute set 19 to "true".</p> 20 21 <h2>Accessibility API Mappings</h2> 22 23 <h3>MSAA + UIA Express</h3> 24 <p>Expose <code>STATE_SYSTEM_SELECTED</code>; Expose <code>STATE_SYSTEM_SELECTABLE</code></p> 25 26 <h3>MSAA + IAccessible2</h3> 27 <p>Expose STATE_SYSTEM_SELECTED and STATE_SYSTEM_SELECTABLE for each of the elements with role option</p> 28 29 <h3>UIA</h3> 30 <p>Expose IsSelected property in SelectionItem Control Pattern. The availability of the SelectionItem Control Pattern indicates the item is selectable.</p> 31 32 <h3>ATK/AT-SPI</h3> 33 <p>Expose STATE_SELECTED on each of the elements with role option.</p> 34 35 <h3>AXAPI</h3> 36 <p>AXSelected:Yes on option 2 and 3 and AXSelected:No on option 1 and 4</p> 37 38 <script> 39 40 function clearSelection() { 41 myVar=setTimeout(function(){var node = document.getElementById('ID_TARGET');node.setAttribute("aria-selected","false");} ,3000) 42 } 43 44 window.addEventListener('load', clearSelection); 45 </script> 46 47 48 49 50 </body></html>