| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 <p id="description">Focus field with a placeholder, then type, then clear the va
lue.</p> | 6 <p id="description">Focus field with a placeholder, then type, then clear the va
lue.</p> |
| 7 <div> | 7 <div> |
| 8 <textarea id=i1 placeholder="Placeholder">Text</textarea> | 8 <textarea id=i1 placeholder="Placeholder">Text</textarea> |
| 9 <script> | 9 <script> |
| 10 var i1 = document.getElementById('i1'); | 10 var i1 = document.getElementById('i1'); |
| 11 i1.focus(); | 11 i1.focus(); |
| 12 document.execCommand("InsertText", false, "Text"); | 12 document.execCommand("InsertText", false, "Text"); |
| 13 i1.value = ""; | 13 i1.value = ""; |
| 14 </script> | 14 </script> |
| 15 </body> | 15 </body> |
| 16 </html> | 16 </html> |
| OLD | NEW |