| <!-- This test ensures that a plugin that is not accessible, will not appear in the AX hierachy--> |
| <a href="#a">more</a><BR> |
| <div id="hiddenDiv" style="visibility: hidden; left: 0px; "><a href="#b">hello</a></div> |
| if (window.accessibilityController) { |
| var result = document.getElementById("result"); |
| var body = document.getElementById("body"); |
| var links1 = accessibilityController.focusedElement.attributesOfDocumentLinks(); |
| var divElement = document.getElementById("hiddenDiv"); |
| divElement.style.visibility = "visible"; |
| accessibilityController.focusedElement.attributesOfChildren(); |
| var links2 = accessibilityController.focusedElement.attributesOfDocumentLinks(); |
| result.innerHTML += "PASS"; |
| result.innerHTML += "FAIL - The div's visibility was toggled, but the new link did not appear\n\n"; |
| result.innerHTML += "Links1: " + links1 + "\n\nLinks2: " + links2 + "\n\n"; |