change idAttribute to vanilla id