editor/reftests/824080-4-ref.html
author Chris Peterson <cpeterson@mozilla.com>
Sun, 03 Sep 2017 22:14:11 -0700
changeset 382613 c81b52d58ea4df9c46c0bf46a89e9f1dbb532fe5
parent 367777 176faadcb01bb344a118bcbf6b95147984516739
permissions -rw-r--r--
Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm MozReview-Commit-ID: CrkIP4iHP1U

<!DOCTYPE html>
<html>
<head>
  <script type="text/javascript">
    function doTest()
    {
      document.getSelection().selectAllChildren(document.body);
      var editor = document.getElementById("editor");
      var editorBody = editor.contentDocument.body;
      editor.contentDocument.getSelection().selectAllChildren(editorBody);
    }
  </script>
</head>
<body>
<p id="text">normal text</p>
<div>content editable</div>
<iframe id="editor" onload="doTest();"
  srcdoc="<body>editable text</body>"></iframe>
</body>
</html>