33 lines
815 B
Plaintext
33 lines
815 B
Plaintext
This is a test case for the fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7904.
|
||
ReplaceSelectionCommand used to guess whether or not nodes in the fragment to be pasted were blocks. It now knows for sure.
|
||
Before the fix, ReplaceSelectionCommand blew away content of the div below after copy/pasting it over itself.
|
||
The following two results must be visually identical except for the caret.
|
||
|
||
before:
|
||
| "\n"
|
||
| <span>
|
||
| style="display:block"
|
||
| <b>
|
||
| "<#selection-caret>This is a paragraph."
|
||
| "\n"
|
||
| <span>
|
||
| style="display:block"
|
||
| <b>
|
||
| "This is another paragraph."
|
||
| "\n"
|
||
|
||
after:
|
||
| "\n"
|
||
| <span>
|
||
| style="display: block;"
|
||
| <b>
|
||
| "This is a paragraph."
|
||
| <span>
|
||
| style="display:block"
|
||
| <b>
|
||
| "This<#selection-caret>"
|
||
| <b>
|
||
| " is another paragraph."
|
||
| <br>
|
||
| "\n"
|