def find_type(type, nested=true)
      find_type_elements(type, nested).map { |e| e.options }
    end
def find_type(type, nested=true)
      find_type_elements(type, nested).map { |e| e.options }
    end
Find all elements of a given type, returning their options hash. The
 options hash has most of the useful data about an element and often you
 can just use this in your rules.

   # Returns [ { :location => 1, :element_level => 2 }, ... ]
   elements = find_type(:li)

 If +nested+ is set to false, this returns only top level elements of a
 given type.