3 <script src=
"../resources/js-test.js"></script>
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 TH element.
</p>
9 <div id=
"console"></div>
14 if (window
.testRunner
)
15 testRunner
.dumpAsText();
17 var table
= document
.querySelector('table');
18 var span
= document
.createElement('span');
19 table
.appendChild(span
);
20 var div
= document
.createElement('div');
21 div
.style
.display
= 'table-cell';
22 table
.appendChild(div
);
23 var input
= document
.createElement('input');
24 input
.setAttribute('autofocus', 'autofocus');
25 div
.appendChild(input
);