Exactly, like you say the parent or the kid should have asked the man first whether the dogs ok to stroke, if he says yes and the kid gets bit then fair enough it's his responsibility. Some dogs just don't appreciate strangers coming up to them, especially kids who may make sudden movements towards the dog.