blob: c1f9bb57fb4979a99bdf05947b3df8453e9b1078 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../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="../resources/js-test-post.js"></script>
</body>
</html>