| OLD | NEW |
| 1 This is a test case for the fix for http://bugzilla.opendarwin.org/show_bug.cgi?
id=7904. | 1 This is a test case for the fix for http://bugzilla.opendarwin.org/show_bug.cgi?
id=7904. |
| 2 ReplaceSelectionCommand used to guess whether or not nodes in the fragment to be
pasted were blocks. It now knows for sure. | 2 ReplaceSelectionCommand used to guess whether or not nodes in the fragment to be
pasted were blocks. It now knows for sure. |
| 3 Before the fix, ReplaceSelectionCommand blew away content of the div below after
copy/pasting it over itself. | 3 Before the fix, ReplaceSelectionCommand blew away content of the div below after
copy/pasting it over itself. |
| 4 The following two results must be visually identical except for the caret. | 4 The following two results must be visually identical except for the caret. |
| 5 | 5 |
| 6 before: | 6 before: |
| 7 | " | 7 | " |
| 8 " | 8 " |
| 9 | <span> | 9 | <span> |
| 10 | style="display:block" | 10 | style="display:block" |
| 11 | <b> | 11 | <b> |
| 12 | "<#selection-caret>This is a paragraph." | 12 | "This is a paragraph." |
| 13 | " | 13 | " |
| 14 " | 14 " |
| 15 | <span> | 15 | <span> |
| 16 | style="display:block" | 16 | style="display:block" |
| 17 | <b> | 17 | <b> |
| 18 | "This is another paragraph." | 18 | "This is another paragraph." |
| 19 | " | 19 | " |
| 20 " | 20 " |
| 21 | 21 |
| 22 after: | 22 after: |
| 23 | " | 23 | " |
| 24 " | 24 " |
| 25 | <span> | 25 | <span> |
| 26 | style="display: block;" | 26 | style="display: block;" |
| 27 | <b> | 27 | <b> |
| 28 | "This is a paragraph." | 28 | "This is a paragraph." |
| 29 | <span> | 29 | <span> |
| 30 | style="display:block" | 30 | style="display:block" |
| 31 | <b> | 31 | <b> |
| 32 | "ThisĀ <#selection-caret>" | 32 | "ThisĀ <#selection-caret>" |
| 33 | <b> | 33 | <b> |
| 34 | "is another paragraph." | 34 | "is another paragraph." |
| 35 | <br> | 35 | <br> |
| 36 | " | 36 | " |
| 37 " | 37 " |
| OLD | NEW |