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.
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.
10 | style="display:block"
12 | "<#selection-caret>This is a paragraph."
16 | style="display:block"
18 | "This is another paragraph."
26 | style="display: block;"
28 | "This is a paragraph."
30 | style="display:block"
32 | "This<#selection-caret>"
34 | " is another paragraph."