OLD | NEW |
| (Empty) |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | |
2 <html> | |
3 <head> | |
4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css"> | |
5 <script> | |
6 var successfullyParsed = false; | |
7 | |
8 function removeElement() { | |
9 document.getElementById('div').removeChild(document.getElementById('div'
).children[2]); | |
10 } | |
11 | |
12 function queryIsEnabledOnDecendants(accessibilityObject) { | |
13 accessibilityObject.isEnabled | |
14 | |
15 var count = accessibilityObject.childrenCount; | |
16 for (var i = 0; i < count; ++i) | |
17 queryIsEnabledOnDecendants(accessibilityObject.childAtIndex(i)); | |
18 } | |
19 </script> | |
20 <script src="../fast/js/resources/js-test-pre.js"></script> | |
21 </head> | |
22 <body> | |
23 | |
24 <div id="div"> | |
25 <span> | |
26 <div>a</div> | |
27 </span> | |
28 <div style="float:left">a</div> | |
29 <span title="title">b</span> | |
30 </div> | |
31 | |
32 <p id="description"></p> | |
33 <div id="console"></div> | |
34 | |
35 <script> | |
36 description("In certain cases removing a decendent from an anonymous block e
lement does not update the parent chain correctly. This can cause a crash."); | |
37 | |
38 if (window.accessibilityController) { | |
39 // First build up full accessibility tree. | |
40 document.body.focus(); | |
41 queryIsEnabledOnDecendants(accessibilityController.focusedElement); | |
42 | |
43 removeElement() | |
44 | |
45 // Now call isEnabled on each accessibility object. | |
46 document.body.focus(); | |
47 queryIsEnabledOnDecendants(accessibilityController.focusedElement); | |
48 } | |
49 | |
50 successfullyParsed = true; | |
51 </script> | |
52 | |
53 <script src="../fast/js/resources/js-test-post.js"></script> | |
54 </body> | |
55 </html> | |
OLD | NEW |