Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / lists.html
1 <!DOCTYPE html>
2 <html>
3 <script>
4     if (window.testRunner)
5         testRunner.dumpAsText();
6 </script>
7 <body id="body">
8     
9     <ul>
10       <li>test 1</li>
11       <li>test 2</li>
12     </ul>
13
14     <ol>
15       <li>test 1</li>
16       <li>test 2</li>
17     </ol>
18
19     <dl>
20       <dt>term 1</dt>
21       <dd>meaning 2</dd>
22
23       <dt>term b</dt>
24       <dd>meaning 1</dd>
25       <dd>meaning 2</dd>
26     </dl>
27
28     <BR><BR><BR><BR>
29     <div id="result"></div>    
30
31     <script>
32         if (window.accessibilityController) {
33             var result = document.getElementById("result");
34
35             var bodyElement = document.getElementById("body");
36             bodyElement.focus();
37             body = accessibilityController.focusedElement;
38             result.innerText += body.attributesOfChildren() + "\n\n"; 
39
40             var olList = body.childAtIndex(0);
41             result.innerText += olList.attributesOfChildren() + "\n\n"; 
42
43             var ulList = body.childAtIndex(1);
44             result.innerText += ulList.attributesOfChildren() + "\n\n"; 
45
46             var dlList = body.childAtIndex(2);
47             result.innerText += dlList.attributesOfChildren() + "\n\n"; 
48             
49         }
50     </script>
51 </body>
52 </html>