I'm an electronic engineer who often was involved in mechanical design of products.
Such problems are thought of by engineers during design and manufacture. Any electronic and electrical situation, such as this, is thought of ahead of time and, if wishing to be UL listed, is tested for such situations. Electrical connections should be protected and sealed against water overflow and pouring since it's an expected problem. The consumer must be protected from electric shock.
Look for a UL sticker on the device somewhere; perhaps the bottom.
Complete submersion is a different issue, though, and more severe protection from that should not be expected and I'm sure the instructions warn against it.