summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/table/dynamic-caption-add-remove-before-child.xhtml
blob: b47d25f9cd754468da450eba8d6f7852f672e595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<html xmlns="http://www.w3.org/1999/xhtml">
    <body>
        <table id="table">
        <caption id="c1">PASS: Text in caption 1</caption>
        </table>
        <script>
           document.body.offsetLeft;           
           var caption = document.createElement('caption');
           caption.appendChild(document.createTextNode('FAIL: Dynamically added caption'));

           var table = document.getElementById('table');
           var c1 = document.getElementById('c1');
           table.insertBefore(caption, c1);
           document.body.offsetTop;
           table.removeChild(caption);
        </script>
    </body>
</html>