1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
6 function removeElement() {
7 document
.getElementById('div').removeChild(document
.getElementById('div').children
[2]);
10 function queryIsEnabledOnDecendants(accessibilityObject
) {
11 accessibilityObject
.isEnabled
13 var count
= accessibilityObject
.childrenCount
;
14 for (var i
= 0; i
< count
; ++i
)
15 queryIsEnabledOnDecendants(accessibilityObject
.childAtIndex(i
));
18 <script src=
"../resources/js-test.js"></script>
26 <div style=
"float:left">a
</div>
27 <span title=
"title">b
</span>
30 <p id=
"description"></p>
31 <div id=
"console"></div>
34 description("In certain cases removing a decendent from an anonymous block element does not update the parent chain correctly. This can cause a crash.");
36 if (window
.accessibilityController
) {
37 // First build up full accessibility tree.
38 document
.body
.focus();
39 queryIsEnabledOnDecendants(accessibilityController
.focusedElement
);
43 // Now call isEnabled on each accessibility object.
44 document
.body
.focus();
45 queryIsEnabledOnDecendants(accessibilityController
.focusedElement
);