The heating element is sealed and the control is in the detachable probe.
Explanation:
The electrical system of those appliances has been sealed (or properly insulated) so that when immersed in water, no water can get to the electrical components. This is reduces drastically the quantity of water that flow into the electrical parts.
Note that during the construction of these type of appliances, the probability of being immersed in water has been taken into consideration. Thus, they can be immersed in water without damage.
Newtons law of gravitation is called the universal law of gravitation because it is applicable for all masses at all distances, independent of the medium.