replace idAttribute with id