Depends on the dog and the child. Is it irresponsible for an adult to leave a child alone for a few minutes with a family dog that knows the child is in its pack? But it is irresponsible to leave a child alone with dogs that view the child as a stranger.
I would never leave a child alone with any animal. I’m over protective in that way. Nothing bad would happen to an innocent child though.