Handle node attribute in a way that doesn't use immutable methods