Toddler seriously hurt in dog attack