Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="text/javascript">
5 function doTest()
6 {
7 document.getSelection().selectAllChildren(document.getElementById("text"));
8 var editor = document.getElementById("editor");
9 var editorBody = editor.contentDocument.body;
10 editor.contentDocument.getSelection().selectAllChildren(editorBody);
11 editor.focus();
12 editor.blur();
13 }
14 </script>
15 </head>
16 <body>
17 <p id="text">normal text</p>
18 <iframe id="editor" onload="doTest();"
19 src="data:text/html,<body>editable text</body>"></iframe>
20 </body>
21 </html>