https://github.com/mozilla/gecko-dev
Raw File
Tip revision: ad512731d1f0f90d36bb85691ed3f91aab2c5767 authored by Ted Mielczarek on 10 March 2014, 18:22:51 UTC
Backout bug 878828 - Enable Gamepad API by default. a=lsblakk
Tip revision: ad51273
824080-4-ref.html
<!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();"
  src="data:text/html,<body>editable text</body>"></iframe>
</body>
</html>

back to top