To those trying to blame the victim of the bite here -- assuming the story is as relayed, yes the person was dumb for petting the dog. But what if it had been a young child?
So then the kid would get bitten. Not the end of the world, and it would teach him a lesson.