Thermal and flame retardant behaviour of cotton fabrics treated with a novel nitrogen-containing carboxyl-functionalized organophosphorus system