Fixed mangled attributes for option with id ID2. Fixed bugs in function handle1(), namely, unassigned var node, and failure to stop event propogation.
authorJoseph Scheuhammer <clown@alum.mit.edu>
Sun, 04 Aug 2013 16:06:37 -0400
changeset 333 bf8634259b9d
parent 332 456dac635004
child 334 cfcb956e87fb
Fixed mangled attributes for option with id ID2. Fixed bugs in function handle1(), namely, unassigned var node, and failure to stop event propogation.
ARIA/1.0/tests/test-files/testcases-multiselectable/testcase-multiselectable-D.html
--- a/ARIA/1.0/tests/test-files/testcases-multiselectable/testcase-multiselectable-D.html	Wed Jul 31 16:56:46 2013 -0500
+++ b/ARIA/1.0/tests/test-files/testcases-multiselectable/testcase-multiselectable-D.html	Sun Aug 04 16:06:37 2013 -0400
@@ -10,14 +10,17 @@
     <h1>ARIA 1.0 Test Case: Listbox role with multiseclect</h1>
         
     <div role="listbox" aria-label="charlotte" aria-multiselectable="true">
-      <div role="option" aria-selected="false" id="ID1" tabindex="-1" onclick="handle1()">Option 1 (test for click elected)</div> 
-      <div role="option  aria-selected="false" id="ID2"="-1" tabindex="-1">Option 2</div>
+      <div role="option" aria-selected="false" id="ID1" tabindex="-1" onclick="handle1(event)">Option 1 (test for click elected)</div> 
+      <div role="option" aria-selected="false" id="ID2" tabindex="-1">Option 2</div>
       <div role="option" aria-selected="false" id="ID3" onmousedown="handle2(event)">Option 3 (test for shift click selected)</div> 
     </div>
     
     <script type="text/javascript">  
-     function handle1() {
+     function handle1(e) {
+        var node=document.getElementById('ID1');
         node.focus();
+        e.stopPropagation();
+        return false;
      }
      function handle2(e) {
         shiftpressed=0;
@@ -34,8 +37,5 @@
         return false;
      }
     </script>
-  
-  
-
 
 </body></html>