fix to use a timeout
authorRichard Schwerdtfeger <schwer@us.ibm.com>
Wed, 11 Sep 2013 17:59:15 -0500
changeset 349 918167c42003
parent 348 5a5a42107c87
child 350 8fa5cd317690
fix to use a timeout
ARIA-UAIG/1.0/tests/test-files/test35.html
--- a/ARIA-UAIG/1.0/tests/test-files/test35.html	Wed Sep 11 17:43:51 2013 -0500
+++ b/ARIA-UAIG/1.0/tests/test-files/test35.html	Wed Sep 11 17:59:15 2013 -0500
@@ -4,11 +4,13 @@
 		<title>div element with role="menu" and tabindex=0 and aria-activedescendant referencing a descendant div element with role=menuitem, and script that removes aria-activedescendant from the menu</title>
 		<script type="text/javascript"><!--
 			function removeActivedescendant(evt) {
-				document.getElementById("test").removeAttribute("aria-activedescendant");
+                                var test = document.getElementById("test");
+                                test.focus();
+				test.document.removeAttribute("aria-activedescendant");
 				var reporter = document.getElementById("report");
 				reporter.appendChild(reporter.ownerDocument.createTextNode("Script has removed active descendant."));
 			}
-			window.addEventListener("load", removeActivedescendant, false);
+			window.setTimeout(removeActivedescendant, 3000);
 		//--></script>
 	</head>
 	<body>
@@ -19,4 +21,4 @@
 		</div>
 		<p id="report"></p>
 	</body>
-</html>
\ No newline at end of file
+</html>