apply style and html changes only to detached nodes.