OLD | NEW |
1 <html xmlns="http://www.w3.org/1999/xhtml"> | 1 <html xmlns="http://www.w3.org/1999/xhtml"> |
2 <body> | 2 <body> |
3 <table id="table"> | 3 <table id="table"> |
4 <caption id="c1">FAIL: Text in caption 1</caption> | 4 <caption id="c1">FAIL: Text in caption 1</caption> |
5 <caption id="c2" style="opacity: 0.5">FAIL: Text in caption 2</caption> | 5 <caption id="c2" style="opacity: 0.5">FAIL: Text in caption 2</caption> |
6 <caption id="c3" style="opacity: 0.2">FAIL: Text in caption 3</caption> | 6 <caption id="c3" style="opacity: 0.2">FAIL: Text in caption 3</caption> |
7 <caption id="c4" style="opacity: 0">FAIL: Text in caption 4</caption> | 7 <caption id="c4" style="opacity: 0">FAIL: Text in caption 4</caption> |
8 </table> | 8 </table> |
9 <script> | 9 <script> |
10 var caption = document.createElement('caption'); | 10 var caption = document.createElement('caption'); |
11 caption.appendChild(document.createTextNode('PASS: Dynamically added
caption')); | 11 caption.appendChild(document.createTextNode('PASS: Dynamically added
caption')); |
12 | 12 |
13 var table = document.getElementById('table'); | 13 var table = document.getElementById('table'); |
14 var c1 = document.getElementById('c1'); | 14 var c1 = document.getElementById('c1'); |
15 table.insertBefore(caption, c1); | 15 table.insertBefore(caption, c1); |
16 document.body.offsetTop; | 16 document.body.offsetTop; |
17 </script> | 17 </script> |
18 </body> | 18 </body> |
19 </html> | 19 </html> |
OLD | NEW |