OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <p>This tests cloning an input element with an edited value. | 4 <p>This tests cloning an input element with an edited value. |
5 The cloned input element should retain the edited value and you should see PASSE
D blow.</p> | 5 The cloned input element should retain the edited value and you should see PASSE
D blow.</p> |
6 <pre id="log"></pre> | 6 <pre id="log"></pre> |
7 <div><input id="test" title="1" type="text" value="FAIL"></div> | 7 <div><input id="test" title="1" type="text" value="FAIL"></div> |
8 <script type="text/javascript"> | 8 <script type="text/javascript"> |
9 | 9 |
10 if (window.layoutTestController) | 10 if (window.layoutTestController) |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 clone.focus(); | 22 clone.focus(); |
23 clone.selectionStart = clone.selectionEnd = clone.value.length; | 23 clone.selectionStart = clone.selectionEnd = clone.value.length; |
24 document.execCommand('InsertText', false, 'ED'); | 24 document.execCommand('InsertText', false, 'ED'); |
25 | 25 |
26 document.getElementById('log').textContent = clone.value; | 26 document.getElementById('log').textContent = clone.value; |
27 | 27 |
28 </script> | 28 </script> |
29 </body> | 29 </body> |
30 </html> | 30 </html> |
OLD | NEW |