<p>
    Test for <i><a href="rdar://problem/5615307">rdar://problem/5615307</a> Repro crash in WebKit!WebCore::RenderContainer::destroyLeftoverChildren</i>.
</p>
<p>
    There should be a line of green text below.
</p>
<table style="color: red;">
    <tbody>
        <tr>
            <td>
                <table style="color: green;">
                    <tbody>
                        <tr id="target" style="display: none;">
                            <td>
                                This should be green.
                            </td>
                        </tr>
                        <form>
                        </form>
                    </tbody>
                </table>
            </td>
        </tr>
    </tbody>
</table>
<script>
    function test()
    {
        document.getElementById("target").style.display = "";
    }

    test();
</script>
