def clone_element_with_item(original_element, item, &block)
      item_element = original_element.dup
      find(item_element) { yield(item) }
      item_element
    end
def clone_element_with_item(original_element, item, &block)
      item_element = original_element.dup
      find(item_element) { yield(item) }
      item_element
    end
Clones an element, sets it as the current context, and yields to the
 given block with the given item.

 @param [Nokogiri::HTML::Element] the element to clone
 @param [Object] item the item that should be yielded to the block
 @yield [Object] the item passed as item
 @return [Nokogiri::HTML::Element] the clone of the original element