summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/accessibility/table-one-cell.html
blob: d5eb9cbc03f25e7df659b3625d26effe21861ef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();
</script>
<body id="body">
    
    <!-- this table should not appear as an AXTable because it only has one cell -->

    <table width="90" border="0" bgcolor="a1a5a9">
    <tr>
    <td>
    <P><strong>Pick Your Location!</strong><br>Get specific content for your area. <br><a href="http://web.apple.com">http://web.apple.com</a><br>
    </font>
    </td>
    </tr>
    </table>
    
    <div id="result"></div>
    
    <script>
        if (window.accessibilityController) {
            var result = document.getElementById("result");

            var body = document.getElementById("body");
            body.focus();
            var table = accessibilityController.focusedElement.childAtIndex(0);

            result.innerText += table.allAttributes();
        }
    </script>
</body>
</html>