blob: a93497e4e16ba6f8aad3dea34dcf41fe23342f26 [file] [log] [blame]
This test splits a text node by inserting a new paragraph and bolds the the first half.
If splitTextNode correctly reapplied the split, undo and redo should preserve the style. (See bug 42941).
before undo:
| <b>
| "<#selection-anchor>he<#selection-focus>"
| <div>
| "llo"
after undo:
| "he<#selection-caret>llo"
after redo:
| <b>
| "<#selection-anchor>he<#selection-focus>"
| <div>
| "llo"