Change to unwrap to keep the document fragment intact