A dog nips at the leg of a horse .