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