Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 <!DOCTYPE HTML><html><head></head>
2 <body>
3 <div contentEditable="true" id="div" spellcheck="false"><p id="p">ABC</p></div>
4 <script>
5 // Position the caret after the "A"
6 var div = document.getElementById('div');
7 var p = document.getElementById('p');
8 div.focus();
9 var sel = window.getSelection();
10 sel.removeAllRanges();
11 var range = document.createRange();
12 range.setStart(p.firstChild, 1)
13 range.setEnd(p.firstChild, 1);
14 sel.addRange(range);
15 </script>
17 </body>
18 </html>