each_element_with_attribute( key, value=nil, max=0, name=nil )
Instance Public methods
Iterates through the child elements, yielding for each Element that has a particular attribute set.
key
the name of the attribute to search for
value
the value of the attribute
max
(optional) causes this method to return after yielding for this number of
matching children
name
(optional) if supplied, this is an XPath that
filters the children to check.
doc = Document.new "<a>&