| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
| function removeElement() {
|
| document.getElementById('div').removeChild(document.getElementById('div').children[2]);
|
| function queryIsEnabledOnDecendants(accessibilityObject) {
|
| if (!accessibilityObject)
|
| accessibilityObject.isEnabled
|
| var count = accessibilityObject.childrenCount;
|
| for (var i = 0; i < count; ++i)
|
| queryIsEnabledOnDecendants(accessibilityObject.childAtIndex(i));
|
| <script src="../resources/js-test-pre.js"></script>
|
| <div style="float:left">a</div>
|
| <span title="title">b</span>
|
| description("In certain cases removing a decendent from an anonymous block element does not update the parent chain correctly. This can cause a crash.");
|
| if (window.accessibilityController) {
|
| // First build up full accessibility tree.
|
| queryIsEnabledOnDecendants(accessibilityController.focusedElement);
|
| // Now call isEnabled on each accessibility object.
|
| queryIsEnabledOnDecendants(accessibilityController.focusedElement);
|
| <script src="../resources/js-test-post.js"></script>
|