rniwa@webkit.org | d7e8d71d | 2011-05-27 05:31:57 +0000 | [diff] [blame] | 1 | <div id="div" contenteditable="true">xx</div> |
| 2 | <script src="../../resources/dump-as-markup.js"></script> |
| 3 | <script> |
| 4 | |
| 5 | Markup.description('This test ensures pasting words copied from TextEdit in Mail does not add extra newline. See rdar://problem/5483567.'); |
| 6 | |
| 7 | text = document.getElementById("div").firstChild; |
| 8 | window.getSelection().setPosition(text, 1); |
| 9 | document.execCommand("InsertHTML", false, " <div>foo</div> "); |
| 10 | |
| 11 | Markup.dump('div') |
| 12 | |
| 13 | </script> |