How can hypochlorous acid produce the hydroxide ion?

Hypochlorous acid ($\ce{HOCl})$ is an acid so it should produce $\ce{H+}$. However in reactions with alkenes, it produces the hydroxide ion like bases do. How is this possible? What is the mechanism?


