allow passing a function to generate new value in setAttribute