In this paper, we present and analyze a variational model in nonlinear elasticity that allows for cavitation and fracture. The main idea in unifying the theories of cavitation and fracture is to regard both cavities and cracks as phenomena of the creation of a new surface. Accordingly, we define a functional that measures the area of the created surface. This functional has relationships with the theory of Cartesian currents. We show that the boundedness of that functional implies sequential weak continuity of the determinant of the deformation gradient, and that the weak limit of one-to-one almost everywhere deformations is also one-to-one almost everywhere. We then use these results to obtain the existence of minimizers of variational mod...