From a draft textbook manuscript submitted to a publisher.
"As Earth was being formed out of the collision of space rocks, the heat from those collisions and from the increasing gravitational energy of the planet made the entire planet molten, even the surface. Any water present would have evaporated and gone off into space. As the planet approached its current size, however, its gravitation became strong enough to hold gases and water vapor around it as an atmosphere. Because comets are largely ice made up of frozen water and gases, a comet striking Earth then would have vaporized. The resulting water vapor would have been retained in the atmosphere, eventually falling as rain on the cooled and solidified surface of Earth. Therefore, the water in Earth's oceans must have originated from comets."