2010-08-17 16:31:02 -07:00
|
|
|
<!DOCTYPE HTML><html><head>
|
2011-06-29 11:22:39 -07:00
|
|
|
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
2010-08-17 16:31:02 -07:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<span contenteditable id="t" style="border: 1px dashed green; min-height: 2px; padding-right: 20px;"> </span></body>
|
|
|
|
<script>
|
|
|
|
var sel = window.getSelection();
|
|
|
|
sel.removeAllRanges();
|
|
|
|
|
2012-01-17 11:40:52 -08:00
|
|
|
// Focus the span to put the caret at its beginning.
|
2010-08-17 16:31:02 -07:00
|
|
|
var area = document.getElementById('t');
|
|
|
|
area.focus();
|
2012-01-17 11:40:52 -08:00
|
|
|
|
|
|
|
// Do nothing else.
|
2010-08-17 16:31:02 -07:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|