That is a totally different scenerio. If the husband did NOT cheat and the child happened to be from a prior relationship and the mother died? Of course I would raise it like my own (or at least try to. I can’t help when my possessive tendencies come through. )
BUT if he cheated, both him and the child can buh-bye out of my life forever.