<html>
    <body>
        <table>
            <td>
                <a></a>                      
            </td>
        </table>
        <script>
            if (window.testRunner)
                testRunner.dumpAsText();

            document.designMode = "on"; 
            document.execCommand("SelectAll"); 
            document.execCommand("CreateLink", 0, 'foo');

            document.body.innerHTML = "PASS. WebKit didn't crash.";
        </script>
   </body>
</html>
