Issue 7469: HTML structure collapses when it's changed

https://code.google.com/p/fbug/issues/detail?id=7469