They should be taught to not rub noses with a dog and to not play any other face to face games with any dog. For the safety of both dog and child, closely supervise all interactions between them. A couple of soft gentle strokes to a dog's ear can quickly be followed by a hard yank or pinch, or by a poke in the eye. She was just petting the dog. Dog bites can easily be avoided.
Prevention is the key.
When a child is bitten by the family dog, it is usually the child itself who is the instigator. For example, it is often easier to feed the dog while the young child is toddling or crawling around in the dog's feeding area. Dogs are animals that protect their food. The Basics of Dog 101 tells us to feed the dog somewhere else - in the crate, or when the child is asleep or in the high chair. Take time to use the dog's water bowl to teach the youngster not to ever touch the dog's dishes.