https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 373ea7c388c7a2ad93d48298999d9726505e4ead authored by seabld on 21 May 2011, 04:50:50 UTC
Added tag SEAMONKEY_2_1rc2_RELEASE for changeset ac9cf29de0d2. CLOSED TREE a=release
Tip revision: 373ea7c
bug632215-1.html
<!DOCTYPE html>
<html class="reftest-wait">
  <head>
    <script type="text/javascript" src="/MochiKit/packed.js"></script>
    <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
  </head>
  <body>
    <iframe src="data:text/html,<body></body>"></iframe>
    <script>
      onload = function() {
        var i = document.querySelector("iframe");
        var d = i.contentDocument;
        var w = i.contentWindow;
        var s = w.getSelection();
        i.focus();
        d.body.contentEditable = true;
        d.body.contentEditable = false;
        d.designMode = "off";
        d.designMode = "on";
        d.body.focus();
        synthesizeKey("x", {});
        s.collapse(d.body.firstChild, 1);
        synthesizeKey("x", {});
        setTimeout(function() {
          document.documentElement.removeAttribute("class");
        }, 0);
      };
    </script>
  </body>
</html>
back to top