Answer: D
Loss of chloride is assisted by the oxygen lone pair, giving the oxocarbenium ion CHX3−OX+=CHX2. Water adds to give the hemiacetal CHX3O−CHX2−OH, which is unstable and breaks down into CHX3OH and HCHO. The HCl is released as a by-product.