e.g. document.execCommand('insertHTML', false, '<table border=1><tbody><tr><td>hello</td></tr></tbody></table>'); results in the caret being placed immediately after "hello" in the last table cell instead of after the table.
<rdar://problem/20508641>