use idAttribute instead of id directly