By providing a polymer X in which the units A are linked by the relatively flexible chain extender groups B the mobility of the polymer chain is improved and, compared with polymers such as poly(ethylene oxide) used in conventional polymer electrolytes, the percentage of the polymer which is crystalline at ambient temperature is considerably reduced or essentially eliminated, thereby improving the