| OLD | NEW |
| (Empty) |
| 1 <script> | |
| 2 if (window.testRunner) | |
| 3 testRunner.dumpEditingCallbacks(); | |
| 4 </script> | |
| 5 <p>This tests inserting a paragraph separator before a special element at the st
art of an editable root.</p> | |
| 6 <p>Visually, it should leave a blank line before the link, and the caret selecti
on at the start of the link.</p> | |
| 7 <p>Structurally, the empty paragraph element should go before the anchor element
, rather than inside of it. See Radar #5452675.</p> | |
| 8 <div contenteditable="true"><a id="anchor" href="http://www.apple.com">applesite
</a></div> | |
| 9 <script> | |
| 10 var sel = window.getSelection(); | |
| 11 sel.collapse(document.getElementById("anchor"), 0); | |
| 12 document.execCommand("InsertParagraph"); | |
| 13 </script> | |
| OLD | NEW |