blob: faffcb7bfcf0002d116e10563970cd4fe59d6c3f [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test.js"></script>
</head>
<body id="body">
<span tabindex="0" id="test" role="unknownrole checkbox" aria-checked="true">test</span>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that aria fallback roles work correctly.");
if (window.accessibilityController) {
if (window.accessibilityController) {
var test = document.getElementById("test");
test.focus();
test = accessibilityController.focusedElement;
debug("Role should be: " + test.role);
}
}
</script>
</body>
</html>