OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html style="font-family: ahem; font-size: 10px; -webkit-font-smoothing: none; c
olor: white"> | 2 <html style="font-family: ahem; font-size: 10px; -webkit-font-smoothing: none; c
olor: white"> |
3 <!-- WebKit bug 82630 - Incorrect placement of new child to table when before ch
ild parent is not |this|. | 3 <!-- WebKit bug 82630 - Incorrect placement of new child to table when before ch
ild parent is not |this|. |
4 Test passes if you see 'B' wrapped in a table cell between ['A'] and ['C','
D']. --> | 4 Test passes if you see 'B' wrapped in a table cell between ['A'] and ['C','
D']. --> |
5 <div id="container"> | 5 <div id="container"> |
6 <div id="div1">A</div> | 6 <div id="div1">A</div> |
7 <div id="div2">C</div> | 7 <div id="div2">C</div> |
8 <div id="div3">D</div> | 8 <div id="div3">D</div> |
9 </div> | 9 </div> |
10 <script> | 10 <script> |
11 container = document.getElementById('container'); | 11 container = document.getElementById('container'); |
12 container.style.display = 'table-row'; | 12 container.style.display = 'table-row'; |
13 document.body.offsetTop; | 13 document.body.offsetTop; |
14 td = document.createElement('td'); | 14 td = document.createElement('td'); |
15 td.appendChild(document.createTextNode('B')); | 15 td.appendChild(document.createTextNode('B')); |
16 container.insertBefore(td, document.getElementById('div2')); | 16 container.insertBefore(td, document.getElementById('div2')); |
17 </script> | 17 </script> |
18 </html> | 18 </html> |
OLD | NEW |