2011-02-11 00:23:09 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
|
|
|
<head>
|
2011-06-29 22:22:39 +04:00
|
|
|
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
2011-02-11 00:23:09 +03:00
|
|
|
</head>
|
|
|
|
<body>
|
2014-01-24 18:18:00 +04:00
|
|
|
<iframe src="data:text/html,<body contenteditable spellcheck=false></body>"></iframe>
|
2011-02-11 00:23:09 +03:00
|
|
|
<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 = 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>
|