Were they all in bed together, the couple, the infant and the dog?
If the baby was in its own bassinet or crib, how would the dog be able to bite?
All together, cuddled up.