| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../fast/js/resources/js-test-pre.js"></script> | 3 <script src="../fast/js/resources/js-test-pre.js"></script> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 | 6 |
| 7 <p id="description">This test makes sure that an element with a display of table
-cell doesn't cause a crash when accessibility code assumes it must be a TD or T
H element.</p> | 7 <p id="description">This test makes sure that an element with a display of table
-cell doesn't cause a crash when accessibility code assumes it must be a TD or T
H element.</p> |
| 8 | 8 |
| 9 <div id="console"></div> | 9 <div id="console"></div> |
| 10 | 10 |
| 11 <table></table> | 11 <table></table> |
| 12 | 12 |
| 13 <script> | 13 <script> |
| 14 if (window.testRunner) | 14 if (window.testRunner) |
| 15 testRunner.dumpAsText(); | 15 testRunner.dumpAsText(); |
| 16 | 16 |
| 17 var table = document.querySelector('table'); | 17 var table = document.querySelector('table'); |
| 18 var span = document.createElement('span'); | 18 var span = document.createElement('span'); |
| 19 table.appendChild(span); | 19 table.appendChild(span); |
| 20 var div = document.createElement('div'); | 20 var div = document.createElement('div'); |
| 21 div.style.display = 'table-cell'; | 21 div.style.display = 'table-cell'; |
| 22 table.appendChild(div); | 22 table.appendChild(div); |
| 23 var input = document.createElement('input'); | 23 var input = document.createElement('input'); |
| 24 input.setAttribute('autofocus', 'autofocus'); | 24 input.setAttribute('autofocus', 'autofocus'); |
| 25 div.appendChild(input); | 25 div.appendChild(input); |
| 26 </script> | 26 </script> |
| 27 | 27 |
| 28 <script src="../fast/js/resources/js-test-post.js"></script> | |
| 29 | 28 |
| 30 </body> | 29 </body> |
| 31 </html> | 30 </html> |
| OLD | NEW |