| <script src="../resources/js-test-pre.js"></script> |
| <option selected>One</option> |
| description("This tests that there's no crash if we hide menu list and then try to access accessibility information."); |
| if (window.accessibilityController) { |
| var menulist = document.getElementById("menulist"); |
| menulist.selectedIndex = 1; |
| var accessibleMenulist = accessibilityController.focusedElement; |
| debug("Role before removal: " + accessibleMenulist.role); |
| menulist.style.display = "none"; |
| debug("Role after removal: " + accessibleMenulist.role); |
| <script src="../resources/js-test-post.js"></script> |