Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
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>