Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / removed-continuation-element-causes-crash.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script>
5
6 function removeElement() {
7    document.getElementById("h3").parentNode.removeChild(document.getElementById("h3"));
8 }
9
10 </script>
11 <script src="../resources/js-test-pre.js"></script>
12 </head>
13 <body>
14
15 <A href="#" tabindex=0 id="link">
16 <h3 id="h3">asdfasdf</h3>
17 <img src="asdf.gif" width=100 height=100>
18 asdfasdf
19 </a>
20
21
22 <p id="description"></p>
23 <div id="console"></div>
24
25 <script>
26
27     description("When you have elements that are continuations, and one of those elements is removed, the parent chain is not being updated accordingly. This can cause a crash.");
28
29     if (window.accessibilityController) {
30
31         document.getElementById("link").focus();
32         var link = accessibilityController.focusedElement;
33         link.attributesOfChildren();
34
35         removeElement();
36
37         // should not cause a crash...
38         link.attributesOfChildren();
39     }
40
41 </script>
42
43 <script src="../resources/js-test-post.js"></script>
44 </body>
45 </html>