Normalize text nodes after applying a style