# File lib/nokogiri/xml/node_set.rb, line 163
      def wrap(html, &blk)
        each do |j|
          new_parent = Nokogiri.make(html, &blk)
          j.replace(new_parent)
          nest = new_parent
          if nest.child
            nest = nest.child until nest.child.nil?
          end
          j.parent = nest
        end
        self
      end