# File lib/nokogiri/html.rb, line 41
      def fragment string
        doc = parse(string)
        finder = lambda { |children, f|
          children.each do |child|
            return children if string =~ /<#{child.name}/
            finder.call(child.children, f)
          end
        }
        finder.call(doc.children, finder)
      end