2011-02-11 00:23:09 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
|
|
|
<head>
|
2019-04-16 06:50:44 +03:00
|
|
|
<script src="/tests/SimpleTest/EventUtils.js"></script>
|
2011-02-11 00:23:09 +03:00
|
|
|
</head>
|
|
|
|
<body>
|
2017-08-01 11:59:22 +03:00
|
|
|
<iframe srcdoc="<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();
|
2018-02-14 22:15:39 +03:00
|
|
|
sendString("x");
|
2011-02-11 00:23:09 +03:00
|
|
|
s.collapse(d.body.firstChild, 1);
|
2018-02-14 22:15:39 +03:00
|
|
|
sendString("x");
|
2011-02-11 00:23:09 +03:00
|
|
|
setTimeout(function() {
|
|
|
|
document.documentElement.removeAttribute("class");
|
|
|
|
}, 0);
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|