blob: fd6e525a7851a8f2ac6c9cfd5ff6b7985b2d6d4f [file] [log] [blame]
<html aria-label="Test">
<head>
<script src="../resources/js-test-pre.js"></script>
</head>
<body id="body">
<p role="button" id="description"></p>
<div id="console"></div>
<script>
if (window.accessibilityController) {
description("This test checks that the <html> element is not the AX tree (ever), even when it has an aria attribute. ");
var startElement = accessibilityController.accessibleElementById("description");
debug("The start element should be a button.");
debug("startElement.role is " + startElement.role);
debug("\nThe parent should be the web area.");
debug("startElement.parentElement().role is " + startElement.parentElement().role);
} else {
debug("This test requires accessibilityController.")
}
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>