blob: 22abf924623e8b2c4326e3f7f8550fede7413b25 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
</head>
<body id="body">
<span id="text1">text1</span>
<span aria-current="true" id="text2">text2</span>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that aria-current is a global attribute.");
if (window.accessibilityController) {
shouldBeFalse("spanAccessible('text1')");
shouldBeTrue("spanAccessible('text2')");
}
function spanAccessible(sh) {
var spanObj = accessibilityController.accessibleElementById(sh);
if (!spanObj)
return false;
return !spanObj.isIgnored;
}
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>