blob: 987a9a2aa8e3f8d997b0ba47d892ad90b4df3568 [file] [log] [blame] [edit]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../fast/js/resources/js-test-pre.js"></script>
</head>
<body id="body">
<input type="text" id="text1" required>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that the required attribute is returned correctly through accessibility.");
if (window.accessibilityController) {
document.getElementById("text1").focus();
shouldBeTrue("accessibilityController.focusedElement.isRequired");
document.getElementById("text1").removeAttribute("required");
shouldBeFalse("accessibilityController.focusedElement.isRequired");
}
</script>
<script src="../fast/js/resources/js-test-post.js"></script>
</body>
</html>