Whilst all the above is correct it should be noted that three Manufacturers, Britannia Fire, TOTAL & Execelsius have put the UK 'Electrically safe' symbol on water and foam spray extinguishers (all of which have BEN3 Kite-marks and in some cases 'ships wheel' approval)
In Europe, where this symbol isn't used it is not uncommon to see foam spray extinguishers marked as 'suitable for fires in electrical equipment up to 1000V'
British Rail in the early 90's installed AFFF spray in place of Halon and water, including locations where direct electrical use was likely, CO2 being reserved for high voltage installations in buildings and the original marking on Thomas Glover AFFF and Britannia Triclass (both pioneers in the use of AFFF Spray) indicated suitability for direct electrical use.
Therefore it isn't technically correct to say you must not use water spray, water mist or foam spray extinguishers on electrical equipment (after all they don't have to have the 'do not use on' warning), but I would think very carefully before saying it is suitable in a risk assessment - the BR example was in an organisation with a lot of training & fire safety management frameworks in place so staff could use AFFF on electrical equipment more readily as they would be aware of the residual hazards from pooling, etc