Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!DOCTYPE HTML><html><head>
2 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
3 </head>
4 <body>
5 <span contenteditable id="t" style="border: 1px dashed green; min-height: 2px; padding-right: 20px;"> </span></body>
6 <script>
7 var sel = window.getSelection();
8 sel.removeAllRanges();
10 // Focus the span to put the caret at its beginning.
11 var area = document.getElementById('t');
12 area.focus();
14 // Enter a character in the span then delete it.
15 sendChar("W");
16 sendKey("BACK_SPACE");
17 </script>
18 </body>
19 </html>