Merge Attr::new_ns and Attr::new.
Factor out common code from SetAttribute/SetAttributeNS.