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 <html>
2 <head>
3 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
4 <script>
5 onload = function() {
6 var el;
7 while (el = document.querySelector("br")) {
8 el.parentNode.removeChild(el);
9 }
10 focus();
11 document.body.focus();
12 getSelection().collapse(document.body.firstChild, 0);
14 var range = window.getSelection().getRangeAt(0);
15 var el = document.createTextNode(" ");
16 range.insertNode(el);
17 el.parentNode.removeChild(el);
19 synthesizeKey("VK_UP", {});
20 }
21 </script>
22 </head>
24 <body style="white-space:pre-wrap;" contenteditable></body></html>