<html>
<body onload="runTest()">
Test passes it it does not crash.
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    function runTest()
    {
        document.body.offsetTop;
        child = document.getElementById('test');
        child.parentNode.removeChild(child);
    }
</script>
<br>
<span id="test"></span>
</body>
</html>

