Unfortunately dogs can be very unpredictable. SweetNiblets I'm so relieved for you that no further damage was done.
What people don't seem to realise is that dogs are animals - they are not children. Yes they can be taught and trained, but you can never completely take away their animal instincts and when threatened, they will defend themselves the only way they know how. They don't have the intelligence to see that the child was merely jumping over it to catch a ball, or pulled its tail out of curiousity - to them children are spontaneous, unpredictable things that are possible threats.
When I was around 11 I was playing on a swing when I saw an alsation pass by, I called to it but it just looked at me and walked past. 5 mins later it had come behind me, dragged me backwards off the swing and proceeded to attack me. I could see passers-by looking but no-one came to help. The owner was a little girl of around 8 who was begging me not to scream as that would make the dog attack me even more.
Eventually I did manage to get away, but that was my first lesson about the unpredictably of dogs. This being the 1980s that dog's owners merely received a warning and advice to muzzle their dog in public.
My next encounter was whilst working as a kennel maid for a YTS scheme. I was 17 and weighed around 7 stone, I was left on my own in charge of around 30 dogs all day. My duties were to feed and water them, clean the kennels and take them for walks. One day I went to change the food of a staffy. Friendly dog that would jump up and lick you. I entered the kennels, stroked the dog, then turned my back on it to pick up the food. It launched itself at me and pinned me up against the wall trying to bite me. I remember I had my hands round its neck trying to keep it's teeth away from me. I managed to kick it and made a run for the door. When I turned back the dog was its usual friendly self. I can only think that it attacked me because I was getting its food.
I still love dogs, I can never resist stroking one. But I would never have one as a pet. I have taught my kids never to stroke one they pass by, to read the signs and what to do in case of an attack. Because there are so many dogs around here I feel that is necessary.
If you have a dog I strongly feel that you have a duty to ensure the dog is safe around everyone. That you can take it for a walk and be sure that should a child run past it, the dog isn't going to try and take a bite. If you cannot guarantee that then you shouldn't have the dog. Because most attacks happen outside the home.
Not that I'm getting at anyone who has posted on this thread. I understand the strong bond between dog and owner, I've had that bond myself. Most people who have posted on here have acted responsibly and have good hearts. I do not blame the OP for what happened and I applaud her for acting swiftly. What I do question is the success of rehabiliation of these dogs and I question the motives of people who keep dangerous breeds around children - or indeed who just keep dangerous breeds!