harrison | ddfc34fc | 2007-09-11 01:03:00 +0000 | [diff] [blame] | 1 | <script> |
rniwa@webkit.org | 14f6b5b | 2012-06-13 08:51:53 +0000 | [diff] [blame] | 2 | if (window.testRunner) { |
| 3 | testRunner.dumpAsText(); |
| 4 | testRunner.dumpEditingCallbacks(); |
ap | e4b0a96 | 2007-10-16 07:04:40 +0000 | [diff] [blame] | 5 | } |
harrison | ddfc34fc | 2007-09-11 01:03:00 +0000 | [diff] [blame] | 6 | </script> |
| 7 | <script type="text/javascript" src="../editing.js"></script> |
| 8 | <div contenteditable> |
| 9 | <table><tbody><tr><td> |
| 10 | <table style="position: relative; z-index: 0;"> |
| 11 | <tbody><tr> |
| 12 | <td> |
| 13 | <font class="Apple-style-span" color="red"> |
| 14 | <span class="Apple-style-span" style="text-decoration:underline;"> |
| 15 | <td> |
| 16 | <a href="http://www.cantonrep.com/index.php?ID=373537&Category=17&subCategoryID=30" id=r-11i_1119206349> |
ap | e4b0a96 | 2007-10-16 07:04:40 +0000 | [diff] [blame] | 17 | <img src="" width=80 height=80 alt="" border=1> |
harrison | ddfc34fc | 2007-09-11 01:03:00 +0000 | [diff] [blame] | 18 | <br> |
| 19 | <font size=-2>Canton Repository (subscription)</font> |
| 20 | </a> |
| 21 | </td> |
| 22 | <td valign=top> |
| 23 | <a href="http://news.google.com/?ned=us&ncl=1119206349&hl=en&topic=s"> |
| 24 | <b id="test">all 79 news articles</b> |
| 25 | </a> |
| 26 | </td> |
| 27 | </span> |
| 28 | </font> |
| 29 | </td> |
| 30 | <td valign=top> |
| 31 | <br> |
| 32 | <td> |
| 33 | </tr></tbody> |
| 34 | </table> |
| 35 | </td></tr></tbody></table> |
| 36 | </div> |
| 37 | <script> |
| 38 | var e = document.getElementById("test").firstChild; |
| 39 | var s = window.getSelection(); |
| 40 | |
| 41 | setSelectionCommand(e, 5, e, 5); |
| 42 | insertHTMLCommand("hello world") |
| 43 | </script> |