Merger dot and id into attr.