According to the laws of electrolysis, the element having higher discharge potential should be liberated at cathode first...in the electrochemical series, hydroxide ion has higher discharge potential than chloride ion....but, during the electrolysis of aqueous NaCl solution, why Chlorine is released at anode, instead of Oxygen gas?