summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/table/multiple-captions-crash2.xhtml
blob: 92b0c63e6277fc64db0d499de29ebb83291364dc (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
<html xmlns="http://www.w3.org/1999/xhtml">
    <script type="text/javascript">
    function runTest()
    {
        if (window.testRunner)
            testRunner.dumpAsText();

        test = document.getElementById("test");
        test2 = document.getElementById("test2");
        inp = document.createElement("input");
                                        
        document.body.offsetTop;
        test.appendChild(inp);
        test2.appendChild(inp);     
        document.body.offsetTop;
    }
    </script>
    <body onload="runTest()">
        Test passes if it does not crash.
        <caption>Text in caption 1</caption>
        <caption id="test">
            <a>Text in caption 2</a>
        </caption>
        <caption>
            <div id="test2">
                <a>Text in caption 3</a>
            </div>
        </caption>
    </body>
</html>