blob: 9521b58558816afb4ea2bcc8a1dc10608cf5ea53 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../fast/js/resources/js-test-pre.js"></script>
</head>
<body id="body">
<label><q role=x><input id="test">
<p id="description"></p>
<div id="console"></div>
<script>
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");
}
</script>
<script src="../fast/js/resources/js-test-post.js"></script>
</body>
</html>