editor/libeditor/crashtests/1666556.html
author Steve Fink <sfink@mozilla.com>
Sun, 25 Sep 2022 18:14:15 +0000
changeset 636414 43c2ed80ba049f83b4da8549c6a5779275876a6d
parent 636050 9b15baab6f77d09eca2956276f66fee97555e4a1
permissions -rw-r--r--
Bug 1790149 - Fix spelling of perfherder-data.json output file for awsy r=perftest-reviewers,sparky Differential Revision: https://phabricator.services.mozilla.com/D157002

<script>
function onError() {
  document.querySelector("details").appendChild(
    document.querySelector("p")
  );
  document.execCommand("indent");
}

function onLoadOfStyle() {
  document.execCommand("delete");
  document.querySelector("details").contentEditable = "true";
  // For emulating the traditional behavior, collapse Selection to end of the
  // <style>.
  getSelection().collapse(
    document.querySelector("style"),
    document.querySelector("style").childNodes.length
  );
  document.querySelector("input").select();
}
</script>
<video focus="false">
<source onerror="onError()">
</video>
<details open>
<p>
<input contenteditable="false">
<style onload="onLoadOfStyle()">
<!-- x -->