editor/reftests/824080-3-ref.html
author Philip Chee <philip.chee@gmail.com>
Sun, 27 Mar 2016 00:06:15 +0800
changeset 290514 2a8ca5caae8e3a300701b0a85e5051ead55e0648
parent 132293 8a53b2daa50e60c1b736af2ca43012cd152f40cb
permissions -rw-r--r--
Bug 1258161 Remove obsolete strings from docshell/resources/content/netError.xhtml r=past

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