blob: a22d28c263a2e93d151fb05c1be9fed2c1d68a94 [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="../fast/js/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="../fast/js/resources/js-test-post.js"></script>
</body>
</html>