Correct style rollback after HTML -> text content transition