editor/reftests/824080-5.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/reftests/824080-5.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<head>
     1.7 +  <script type="text/javascript">
     1.8 +    function doTest()
     1.9 +    {
    1.10 +      var editor1 = document.getElementById("editor1");
    1.11 +      editor1.focus();
    1.12 +      editor1.blur();
    1.13 +      document.getSelection().selectAllChildren(document.body);
    1.14 +      var editor2 = document.getElementById("editor2");
    1.15 +      var editorBody = editor2.contentDocument.body;
    1.16 +      editor2.contentDocument.getSelection().selectAllChildren(editorBody);
    1.17 +      editor2.focus();
    1.18 +    }
    1.19 +  </script>
    1.20 +</head>
    1.21 +<body>
    1.22 +<p>normal text</p>
    1.23 +<div id="editor1" contenteditable>content editable</div>
    1.24 +<iframe id="editor2" onload="doTest();"
    1.25 +  src="data:text/html,<script>document.designMode='on';</script><body>editable text</body>"></iframe>
    1.26 +</body>
    1.27 +</html>
    1.28 +

mercurial