1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../resources/js-test.js"></script>
9 <tr id=
"row"><td id=
"tablecell" tabindex=
0>1</td><td>2</td></tr>
10 <tr id=
"row2"><td id=
"tablecell2" tabindex=
0>1</td><td>2</td></tr>
13 <p id=
"description"></p>
14 <div id=
"console"></div>
17 description("This tests for a crash that can occur while altering an attribute on a table cell because it accesses the table when its in a bad state.");
19 if (window
.accessibilityController
) {
20 document
.getElementById("body").focus();
21 var body
= accessibilityController
.focusedElement
;
22 var tr
= document
.createElement("tr");
23 var td
= document
.createElement("td");
24 td
.appendChild(document
.createTextNode("asdf"));
27 // To reproduce, we need to remove a row and replace with another row, then set an attribute in the meantime.
28 document
.getElementById("table").getElementsByTagName("TBODY")[0].removeChild(document
.getElementById("row2"));
29 document
.getElementById("table").getElementsByTagName("TBODY")[0].appendChild(tr
);
30 document
.getElementById("tablecell").setAttribute("title", "test");