Elucidating colorization in the functionalization of hydroxyl-containing polymers using unsaturated anhydrides/acyl chlorides in the presence of triethylamine.