This function extends the YAHOO.util.Dom class which will natively use the getElementsBy method. With it you can get any element by an attribute/value pair.
YAHOO.util.Dom
getElementsBy
rev="foo bar"
rev="foo"
rel="search cool"
rel="search"
rel="searchesk"
Found