apply attributes changes, text node changes