editor/libeditor/crashtests/1645983-2.html
author Masayuki Nakano <masayuki@d-toybox.com>
Mon, 22 Jun 2020 14:48:47 +0000
changeset 536700 be987c4c9dd724285e22eb1e6b6521ad156d8e1e
permissions -rw-r--r--
Bug 1646890 - Add automated test for bug 1645983 r=m_kato This patch adds new test which is based on actual scenario in Gmail composer. Differential Revision: https://phabricator.services.mozilla.com/D80310

<!doctype html>
<div contenteditable>abc<span></span><span></span></div>
<script>
let editor = document.querySelector("div[contenteditable]");
getSelection().collapse(editor, 3);
document.execCommand("inserttext", false, " ");
</script>