| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| var successfullyParsed = false; |
| <script src="../fast/js/resources/js-test-pre.js"></script> |
| <label><q role=x><input id="test"> |
| description("This tests a crashing scenario where an element with a role attribute is a child of a label that also has a corresponding control."); |
| if (window.accessibilityController) { |
| document.getElementById("test").focus(); |
| // This line should not crash. |
| var input = accessibilityController.focusedElement; |
| shouldBe("input.childrenCount", "0"); |
| successfullyParsed = true; |
| <script src="../fast/js/resources/js-test-post.js"></script> |