Polymer from monomers only having pendant glycidyl group