blob: 22c4bb2afbab5aab263b959e4835417bea3a9d75 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script>
function createAXObjects(accessibilityObject) {
var count = accessibilityObject.childrenCount;
for (var i = 0; i < count; ++i)
createAXObjects(accessibilityObject.childAtIndex(i));
}
</script>
<script src="../resources/js-test-pre.js"></script>
</head>
<body id="body">
<table id="table">
<tr id="row"><td id="cell">foo</td></tr>
<tr><td>bar</td></tr>
</table>
<script>
description("This tests that we do not crash when a table is destroyed.");
if (window.accessibilityController) {
document.body.focus();
var body = accessibilityController.focusedElement;
createAXObjects(body);
}
var element = document.getElementById("table");
element.parentNode.removeChild(element);
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>