WebCore:
[WebKit-https.git] / LayoutTests / editing / pasteboard / paste-into-anchor-text.html
1 <script>
2 if (window.layoutTestController)
3      layoutTestController.dumpEditingCallbacks();
4 </script>
5 <script type="text/javascript" src="../editing.js"></script>
6 <div contenteditable>
7 <table><tbody><tr><td>
8     <table style="position: relative; z-index: 0;">
9         <tbody><tr>
10             <td>
11                 <font class="Apple-style-span" color="red">
12                     <span class="Apple-style-span" style="text-decoration:underline;">
13                         <td>
14                             <a href="http://www.cantonrep.com/index.php?ID=373537&Category=17&subCategoryID=30" id=r-11i_1119206349>
15                                 <img src=http://news.google.com/news?imgefp=Se6UJuKIqiUJ&imgurl=www.cantonrep.com/photos/2007/08/m_31mOhio_State.jpg width=80 height=80 alt="" border=1>
16                                 <br>
17                                 <font size=-2>Canton Repository (subscription)</font>
18                             </a>
19                         </td>
20                         <td valign=top>
21                             <a href="http://news.google.com/?ned=us&ncl=1119206349&hl=en&topic=s">
22                                 <b id="test">all 79 news articles</b>
23                             </a>
24                         </td>
25                     </span>
26                 </font>
27             </td>
28             <td valign=top>
29                 <br>
30             <td>
31         </tr></tbody>
32     </table>
33 </td></tr></tbody></table>
34 </div>
35 <script>
36 var e = document.getElementById("test").firstChild;
37 var s = window.getSelection();
38
39 setSelectionCommand(e, 5, e, 5);
40 insertHTMLCommand("hello world")
41 </script>