I see a trick for this problem, knowing the limitations of HTMLDocument. Try to replace your outer spans by fonts like :
This is <font title="t2" style="color: #00FF00;">new <span style="color: #0000FF;">more</span> title</font> test
I'm pretty sure it will work. Give these font a specific class. This way you can revert them to span when exporting the html content.