A man lying on the roof of a car was talking as he beat the dog that bit his arm.