editor/libeditor/crashtests/1581246.html
author ffxbld <ffxbld@mozilla.com>
Tue, 27 Sep 2022 16:27:33 +0000
changeset 636477 d1ae84015c22f2034435b47194fdced878072035
parent 636050 9b15baab6f77d09eca2956276f66fee97555e4a1
permissions -rw-r--r--
No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM Differential Revision: https://phabricator.services.mozilla.com/D158124

<script>
function onLoad() {
  // For emulating the traditional behavior, collapse Selection to end of the
  // <textarea> which is the last child of the <body>.
  getSelection().collapse(
    document.querySelector("textarea"),
    document.querySelector("textarea").childNodes.length
  );
  document.querySelector("script").appendChild(
    document.querySelector("li[contenteditable=false]")
  );
  document.execCommand("indent");
  document.execCommand("delete");
}
</script>
<body onload="onLoad()">
<ul contenteditable>
<li contenteditable="false">
<textarea autofocus>