I had exactly this idea for solving the first problem, but the idea and the implementation in code are two different things.
Splitting works great now! Thank you, again.
I will try to do more tests in the near future.
BTW, your sample code from the previous post causes an unexpected side effect.
Paste this fragment and call Mend & Prettify several times:
Code:
<div>top</div>|<div>bottom</div>
I know this is an incredibly rare situation, I report it as a curiosity.