I've seen dogs that can jump an 8 foot fence.
Maybe we should require fences to be 10' or 12'...
Or we can acknowledge that in this case, either the dog was provoked into attacking, which would be the girl's fault, or the dog attacked for no reason, in which case it would be the dog's (owner's) fault.
Why blame the fence?